The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
                                                                                             QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=18602.75..19244.22 rows=1 width=636) (actual time=126.516..126.517 rows=1 loops=1)
   ->  Nested Loop  (cost=0.00..2254139.98 rows=3514 width=636) (actual time=2.637..126.488 rows=30 loops=1)
         ->  Nested Loop  (cost=0.00..1860597.05 rows=73883 width=640) (actual time=0.214..121.234 rows=588 loops=1)
               ->  Index Scan Backward using index_stories_on_published_at on stories  (cost=0.00..405621.70 rows=1303286 width=636) (actual time=0.099..52.447 rows=10157 loops=1)
                     Filter: (NOT hidden)
               ->  Index Scan using index_story_tag_attachments_on_story_id_and_story_tag_id on story_tag_attachments  (cost=0.00..1.10 rows=1 width=4) (actual time=0.005..0.005 rows=0 loops=10157)
                     Index Cond: ((story_tag_attachments.story_id = stories.id) AND (story_tag_attachments.story_tag_id = 166))
         ->  Index Scan using index_story_region_attachments_on_story_id_and_region_id on story_region_attachments  (cost=0.00..5.31 rows=1 width=4) (actual time=0.007..0.007 rows=0 loops=588)
               Index Cond: ((story_region_attachments.story_id = stories.id) AND (story_region_attachments.region_id = 26824))
 Total runtime: 126.625 ms
(10 rows)