Advertisement
daniilak

Untitled

Jun 4th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. Gather Merge (cost=2361773.42..2710634.66 rows=2913620 width=4) (actual time=4833.251..4896.560 rows=184475 loops=1)
  2. Workers Planned: 4
  3. Workers Launched: 4
  4. Buffers: shared hit=226923 read=851354
  5. I/O Timings: read=1070.438
  6. -> Sort (cost=2360773.36..2362594.37 rows=728405 width=4) (actual time=4810.168..4812.565 rows=36895 loops=5)
  7. Sort Key: t1.index_id DESC
  8. Sort Method: quicksort Memory: 3334kB
  9. Worker 0: Sort Method: quicksort Memory: 3105kB
  10. Worker 1: Sort Method: quicksort Memory: 3336kB
  11. Worker 2: Sort Method: quicksort Memory: 3203kB
  12. Worker 3: Sort Method: quicksort Memory: 3352kB
  13. Buffers: shared hit=226923 read=851354
  14. I/O Timings: read=1070.438
  15. -> Hash Join (cost=858691.05..2289847.17 rows=728405 width=4) (actual time=50.110..4802.301 rows=36895 loops=5)
  16. Hash Cond: (t1.id_house = t2.id)
  17. Buffers: shared hit=226895 read=851354
  18. I/O Timings: read=1070.438
  19. -> Parallel Seq Scan on cache_table t1 (cost=0.00..1332559.84 rows=37560484 width=8) (actual time=0.022..1947.030 rows=30048358 loops=5)
  20. Buffers: shared hit=105601 read=851354
  21. I/O Timings: read=1070.438
  22. -> Hash (cost=846663.75..846663.75 rows=962184 width=4) (actual time=45.329..45.329 rows=71594 loops=5)
  23. Buckets: 1048576 Batches: 1 Memory Usage: 10709kB
  24. Buffers: shared hit=121126
  25. -> Index Scan using houses_index on houses t2 (cost=0.56..846663.75 rows=962184 width=4) (actual time=0.625..31.299 rows=71594 loops=5)
  26. Index Cond: (id_addresses = ANY ('{...,17572575}'::integer[]))
  27. Buffers: shared hit=121126
  28. Planning Time: 4.144 ms
  29. Execution Time: 4902.129 ms
  30. (29 rows)
  31. __________________________
  32. __________________________
  33. ВТорой раз
  34. __________________________
  35. __________________________
  36. Gather Merge (cost=2361773.42..2710634.66 rows=2913620 width=4) (actual time=4728.949..4792.368 rows=184475 loops=1)
  37. Workers Planned: 4
  38. Workers Launched: 4
  39. Buffers: shared hit=227083 read=851194
  40. I/O Timings: read=1052.640
  41. -> Sort (cost=2360773.36..2362594.37 rows=728405 width=4) (actual time=4703.901..4706.460 rows=36895 loops=5)
  42. Sort Key: t1.index_id DESC
  43. Sort Method: quicksort Memory: 3265kB
  44. Worker 0: Sort Method: quicksort Memory: 3342kB
  45. Worker 1: Sort Method: quicksort Memory: 3149kB
  46. Worker 2: Sort Method: quicksort Memory: 3234kB
  47. Worker 3: Sort Method: quicksort Memory: 3339kB
  48. Buffers: shared hit=227083 read=851194
  49. I/O Timings: read=1052.640
  50. -> Hash Join (cost=858691.05..2289847.17 rows=728405 width=4) (actual time=57.413..4696.346 rows=36895 loops=5)
  51. Hash Cond: (t1.id_house = t2.id)
  52. Buffers: shared hit=227055 read=851194
  53. I/O Timings: read=1052.640
  54. -> Parallel Seq Scan on cache_table t1 (cost=0.00..1332559.84 rows=37560484 width=8) (actual time=0.020..1890.739 rows=30048358 loops=5)
  55. Buffers: shared hit=105761 read=851194
  56. I/O Timings: read=1052.640
  57. -> Hash (cost=846663.75..846663.75 rows=962184 width=4) (actual time=48.699..48.700 rows=71594 loops=5)
  58. Buckets: 1048576 Batches: 1 Memory Usage: 10709kB
  59. Buffers: shared hit=121126
  60. -> Index Scan using houses_index on houses t2 (cost=0.56..846663.75 rows=962184 width=4) (actual time=0.587..34.384 rows=71594 loops=5)
  61. Index Cond: (id_addresses = ANY ('{1300337,,11708015,11669326,17476104,17572575}'::integer[]))
  62. Buffers: shared hit=121126
  63. Planning Time: 2.961 ms
  64. Execution Time: 4797.918 ms
  65. (29 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement