Advertisement
daniilak

Untitled

Jun 4th, 2021 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT "t1"."index_id" FROM "cache_table" AS "t1" INNER JOIN "houses" AS "t2" ON ("t1"."id_house" = "t2"."id") WHERE (("t2"."id_addresses""t1"."index_id" DESC LIMIT 100 OFFSET 0
  2.  
  3. ___
  4.  Limit  (cost=1001.16..14871.56 rows=100 width=4) (actual time=1077.065..2369.883 rows=100 loops=1)
  5.    ->  Gather Merge  (cost=1001.16..520607739.31 rows=3753366 width=4) (actual time=1077.063..2369.859 rows=100 loops=1)
  6.          Workers Planned: 2
  7.          Workers Launched: 2
  8.          ->  Nested Loop  (cost=1.14..520173507.72 rows=1563902 width=4) (actual time=1046.247..2069.054 rows=47 loops=3)
  9.                ->  Parallel Index Scan Backward using cache_index_id on cache_table t1  (cost=0.57..118451325.04 rows=62600747 width=8) (actual time=0.033..146.011 rows=124137 loops=3)
  10.                ->  Index Scan using houses_pkey on houses t2  (cost=0.56..6.42 rows=1 width=4) (actual time=0.015..0.015 rows=0 loops=372412)
  11.                      Index Cond: (id = t1.id_house)
  12.                      Filter: (id_addresses = ANY ('{1300337,.перечисление индексов..17572575}'::integer[]))
  13.                      Rows Removed by Filter: 1
  14.  Planning Time: 4.388 ms
  15.  Execution Time: 2290.678 ms
  16. (12 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement