explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Qlov

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 913.054 ↑ 1.0 40 1

Limit (cost=40,031.34..40,036.00 rows=40 width=88) (actual time=913.031..913.054 rows=40 loops=1)

2. 29.226 932.294 ↑ 633.1 40 1

Gather Merge (cost=40,031.34..42,986.01 rows=25,324 width=88) (actual time=913.030..932.294 rows=40 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 22.173 903.068 ↑ 45.4 279 3 / 3

Sort (cost=39,031.31..39,062.97 rows=12,662 width=88) (actual time=902.999..903.068 rows=279 loops=3)

  • Sort Key: t.created_at DESC
  • Sort Method: quicksort Memory: 4,577kB
4. 146.966 880.895 ↓ 2.3 28,835 3 / 3

Nested Loop Left Join (cost=18,971.87..38,168.51 rows=12,662 width=88) (actual time=260.040..880.895 rows=28,835 loops=3)

5. 27.516 532.086 ↓ 2.3 28,835 3 / 3

Nested Loop (cost=18,971.44..28,339.62 rows=12,662 width=687) (actual time=259.969..532.086 rows=28,835 loops=3)

6. 39.348 360.393 ↓ 2.1 28,835 3 / 3

Hash Join (cost=18,971.15..22,770.47 rows=13,712 width=80) (actual time=259.932..360.393 rows=28,835 loops=3)

  • Hash Cond: ((eo.event_uid)::text = (e.uid)::text)
7. 42.476 165.655 ↑ 1.3 29,651 3 / 3

Hash Join (cost=3,363.88..6,212.57 rows=38,283 width=113) (actual time=103.791..165.655 rows=29,651 loops=3)

  • Hash Cond: (eo.order_id = t.id)
8. 20.150 20.150 ↑ 1.2 33,435 3 / 3

Parallel Index Only Scan using event_orders_event_uid_order_id_key on event_orders eo (cost=0.42..2,740.62 rows=41,328 width=41) (actual time=0.033..20.150 rows=33,435 loops=3)

  • Heap Fetches: 4,559
9. 62.892 103.029 ↑ 1.0 84,865 3 / 3

Hash (cost=2,302.65..2,302.65 rows=84,865 width=72) (actual time=103.029..103.029 rows=84,865 loops=3)

  • Buckets: 131,072 Batches: 1 Memory Usage: 9,982kB
10. 40.137 40.137 ↑ 1.0 84,865 3 / 3

Seq Scan on order_v2 t (cost=0.00..2,302.65 rows=84,865 width=72) (actual time=0.023..40.137 rows=84,865 loops=3)

11. 53.889 155.390 ↑ 1.0 79,189 3 / 3

Hash (cost=14,608.38..14,608.38 rows=79,911 width=33) (actual time=155.390..155.390 rows=79,189 loops=3)

  • Buckets: 131,072 Batches: 1 Memory Usage: 6,051kB
12. 101.501 101.501 ↑ 1.0 79,189 3 / 3

Index Scan using idx_views_events_v2_init_point_id on events_v2 e (cost=0.42..14,608.38 rows=79,911 width=33) (actual time=0.109..101.501 rows=79,189 loops=3)

  • Index Cond: (init_point_id = ANY ('{3337,31249392,77918439,50677385,33935738,45134433,5,31048375,33949580,45089315,14,20,10289611,89099974,44009457,25565607,45074279,45074285,31276267,31545800,3341,8,71904711,37534833,6,9851,3339,16,2,31289745,35633224,23381011,6041,11,9837,24,89099969,15564683,31289741,77918440,77918441,43994469,46242075,33935735,32893134,31289740,62771745,15,8269152,4,9790310,46242072,50661657,32879486,12,31048376,6821844,37534836,19944229,46242073,37534835,68403069,31276270,31289734,31276271,3088539,120065980,31559341,43949531,16932574,33935739,31559332,71904712,37520704,16932573,46242063,46242066,25,74404560,50677383,33935736,68727005,62379851,4746,27,74404559,33935733,46242070,31289737,19,7,31289739,37534832,1,23,18,89099975,74804035,23381010,71904713,33949582,89099978,77566940,72464520,33949581,3455,44009459,46242067,3340,21,16233,71904708,71904710,68727006,28,29570928,33935734,71904709,31289732,89099979,50708850,32879487,37534831,9790308,46257354,32879483,25565605,45074276,9,31559335,54901057,13,5683,16932572,25565606,46242069,74804036,11841881,10,4597,20721486,12124137,31276280,31289738,31559323,23393397,26,31048378,20721485,43964497,33935737,37534834,31262830,22,31222544,3,3338,46242071,45089314,31276281,5209,33234808,31545799,31303216,31048377,89099977,43994470,72464519,5255,25565604,17,45029225,89099973,31559339,3454,31249395,31289742,120062930,31249393,31559342,31559328,31559344}'::bigint[]))
13. 144.177 144.177 ↑ 1.0 1 86,506 / 3

Index Scan using idx_route_order_id on route r (cost=0.29..0.40 rows=1 width=623) (actual time=0.005..0.005 rows=1 loops=86,506)

  • Index Cond: (order_id = eo.order_id)
14. 201.843 201.843 ↑ 1.0 1 86,504 / 3

Index Scan using idx_point_attribute_point_id on point_attribute pa (cost=0.43..0.75 rows=1 width=41) (actual time=0.005..0.007 rows=1 loops=86,504)

  • Index Cond: (point_id = (((r.data -> 0) ->> 'PointID'::text))::bigint)
  • Filter: ((key)::text = 'utc_offset'::text)
  • Rows Removed by Filter: 5
Planning time : 1.730 ms
Execution time : 933.702 ms