Advertisement
daniilak

Untitled

Jun 4th, 2021
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. Через EXIST
  2. Gather (cost=1032884.17..6135845.84 rows=2913619 width=4) (actual time=62.897..5231.869 rows=184475 loops=1)
  3. Workers Planned: 4
  4. Workers Launched: 4
  5. Buffers: shared hit=1051138 read=27111
  6. I/O Timings: read=48.592
  7. -> Hash Join (cost=1031884.17..5843483.94 rows=728405 width=4) (actual time=67.164..4971.449 rows=36895 loops=5)
  8. Hash Cond: (t1.id_house = t2.id)
  9. Buffers: shared hit=1051138 read=27111
  10. I/O Timings: read=48.592
  11. -> Parallel Seq Scan on cache_table t1 (cost=0.00..4713003.40 rows=37560484 width=8) (actual time=0.013..1943.587 rows=30048358 loops=5)
  12. Buffers: shared hit=935648 read=21307
  13. I/O Timings: read=30.423
  14. -> Hash (cost=933260.31..933260.31 rows=962184 width=4) (actual time=55.043..55.043 rows=71594 loops=5)
  15. Buckets: 1048576 Batches: 1 Memory Usage: 10709kB
  16. Buffers: shared hit=115322 read=5804
  17. I/O Timings: read=18.169
  18. -> Index Scan using houses_index on houses t2 (cost=0.56..933260.31 rows=962184 width=4) (actual time=0.597..40.698 rows=71594 loops=5)
  19. Index Cond: (id_addresses = ANY ('{13,17572575}'::integer[]))
  20. Buffers: shared hit=115322 read=5804
  21. I/O Timings: read=18.169
  22. Planning Time: 4.252 ms
  23. Execution Time: 5237.685 ms
  24. (22 rows)
  25.  
  26.  
  27. ______________________________________________________
  28. ______________________________________________________
  29. ______________________________________________________
  30. ______________________________________________________
  31. Черех иннер джоин
  32.  
  33.  
  34. Gather Merge (cost=5915410.19..6264271.43 rows=2913620 width=4) (actual time=4929.216..5133.867 rows=184475 loops=1)
  35. Workers Planned: 4
  36. Workers Launched: 4
  37. Buffers: shared hit=1057130 read=21147
  38. I/O Timings: read=29.649
  39. -> Sort (cost=5914410.13..5916231.14 rows=728405 width=4) (actual time=4902.611..4905.086 rows=36895 loops=5)
  40. Sort Key: t1.index_id DESC
  41. Sort Method: quicksort Memory: 3282kB
  42. Worker 0: Sort Method: quicksort Memory: 3241kB
  43. Worker 1: Sort Method: quicksort Memory: 3351kB
  44. Worker 2: Sort Method: quicksort Memory: 3139kB
  45. Worker 3: Sort Method: quicksort Memory: 3316kB
  46. Buffers: shared hit=1057130 read=21147
  47. I/O Timings: read=29.649
  48. -> Hash Join (cost=1031884.17..5843483.94 rows=728405 width=4) (actual time=63.729..4894.687 rows=36895 loops=5)
  49. Hash Cond: (t1.id_house = t2.id)
  50. Buffers: shared hit=1057102 read=21147
  51. I/O Timings: read=29.649
  52. -> Parallel Seq Scan on cache_table t1 (cost=0.00..4713003.40 rows=37560484 width=8) (actual time=0.013..1904.929 rows=30048358 loops=5)
  53. Buffers: shared hit=935808 read=21147
  54. I/O Timings: read=29.649
  55. -> Hash (cost=933260.31..933260.31 rows=962184 width=4) (actual time=51.165..51.165 rows=71594 loops=5)
  56. Buckets: 1048576 Batches: 1 Memory Usage: 10709kB
  57. Buffers: shared hit=121126
  58. -> Index Scan using houses_index on houses t2 (cost=0.56..933260.31 rows=962184 width=4) (actual time=0.634..36.510 rows=71594 loops=5)
  59. Index Cond: (id_addresses = ANY ('{13003575}'::integer[]))
  60. Buffers: shared hit=121126
  61. Planning Time: 3.922 ms
  62. Execution Time: 5139.906 ms
  63. (29 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement