explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iMwo

Settings
# exclusive inclusive rows x rows loops node
1. 27.291 7,820.058 ↑ 200.0 1 1

GroupAggregate (cost=6,339,356.33..6,340,237.66 rows=200 width=72) (actual time=7,820.058..7,820.058 rows=1 loops=1)

  • Group Key: ('ALL'::text)
  • Buffers: shared hit=4699712
2. 31.542 7,792.767 ↓ 3.4 120,998 1

Sort (cost=6,339,356.33..6,339,444.06 rows=35,093 width=56) (actual time=7,787.131..7,792.767 rows=120,998 loops=1)

  • Sort Key: ('ALL'::text)
  • Sort Method: quicksort Memory: 9393kB
  • Buffers: shared hit=4699712
3. 65.397 7,761.225 ↓ 3.4 120,998 1

Nested Loop Left Join (cost=4,133,821.81..6,336,707.00 rows=35,093 width=56) (actual time=5,511.032..7,761.225 rows=120,998 loops=1)

  • Buffers: shared hit=4699712
4. 40.836 5,652.112 ↓ 3.1 107,564 1

Finalize GroupAggregate (cost=4,133,821.81..4,138,791.19 rows=35,093 width=60) (actual time=5,510.967..5,652.112 rows=107,564 loops=1)

  • Group Key: o_6.person_id, ('ALL'::text)
  • Buffers: shared hit=1592417
5. 0.000 5,611.276 ↓ 3.9 136,528 1

Gather Merge (cost=4,133,821.81..4,138,177.07 rows=35,092 width=56) (actual time=5,510.963..5,611.276 rows=136,528 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
  • Buffers: shared hit=7967351
6. 73.435 27,632.240 ↓ 3.1 27,306 5

Partial GroupAggregate (cost=4,132,821.75..4,132,997.21 rows=8,773 width=56) (actual time=5,504.444..5,526.448 rows=27,306 loops=5)

  • Group Key: o_6.person_id, 'ALL'::text
  • Buffers: shared hit=7967351
7. 151.355 27,558.805 ↓ 6.1 53,293 5

Sort (cost=4,132,821.75..4,132,843.69 rows=8,773 width=56) (actual time=5,504.437..5,511.761 rows=53,293 loops=5)

  • Sort Key: o_6.person_id
  • Sort Method: quicksort Memory: 5750kB
  • Buffers: shared hit=7967351
8. 26.160 27,407.450 ↓ 6.1 53,293 5

Result (cost=0.00..4,132,247.17 rows=8,773 width=56) (actual time=0.155..5,481.490 rows=53,293 loops=5)

  • Buffers: shared hit=7967323
9. 21.510 27,381.290 ↓ 6.1 53,293 5

Append (cost=0.00..4,132,159.44 rows=8,773 width=24) (actual time=0.154..5,476.258 rows=53,293 loops=5)

  • Buffers: shared hit=7967323
10. 0.000 0.000 ↓ 0.0 0 5

Parallel Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc o_6 (cost=0.00..0.00 rows=1 width=24) (actual time=0.000..0.000 rows=0 loops=5)

  • Filter: ((timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone) AND ((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
11. 320.520 320.520 ↓ 2.7 1,656 5

Parallel Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_1 o_7 (cost=0.00..89,420.94 rows=606 width=24) (actual time=0.154..64.104 rows=1,656 loops=5)

  • Filter: ((timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone) AND ((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
  • Rows Removed by Filter: 241670
  • Buffers: shared hit=118919
12. 4,856.420 4,856.420 ↓ 4.9 17,448 5

Parallel Index Only Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_2_location on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_2 o_8 (cost=0.68..686,048.09 rows=3,572 width=24) (actual time=750.815..971.284 rows=17,448 loops=5)

  • Index Cond: ((location_path ~>=~ '/'::text) AND (location_path ~<~ '0'::text) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
  • Rows Removed by Filter: 1605911
  • Heap Fetches: 23
  • Buffers: shared hit=1240937
13. 10,733.230 10,733.230 ↓ 7.4 15,894 5

Parallel Index Only Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_3_location on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_3 o_9 (cost=0.81..1,548,345.67 rows=2,158 width=24) (actual time=1,802.242..2,146.646 rows=15,894 loops=5)

  • Index Cond: ((location_path ~>=~ '/'::text) AND (location_path ~<~ '0'::text) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
  • Rows Removed by Filter: 3544890
  • Heap Fetches: 124
  • Buffers: shared hit=2741412
14. 10,879.110 10,879.110 ↓ 8.2 18,075 5

Parallel Index Only Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_4_location on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_4 o_10 (cost=0.81..1,631,247.66 rows=2,192 width=24) (actual time=1,891.101..2,175.822 rows=18,075 loops=5)

  • Index Cond: ((location_path ~>=~ '/'::text) AND (location_path ~<~ '0'::text) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
  • Rows Removed by Filter: 3700026
  • Heap Fetches: 172
  • Buffers: shared hit=3164147
15. 570.500 570.500 ↑ 1.1 221 5

Parallel Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_5_ts_pid_ses on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_5 o_11 (cost=0.56..177,097.08 rows=244 width=24) (actual time=0.466..114.100 rows=221 loops=5)

  • Index Cond: ((timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND ((location_path)::text ~~ '/%tax-calculator%'::text))
  • Rows Removed by Filter: 166316
  • Buffers: shared hit=701908
16. 0.000 2,043.716 ↓ 0.0 0 107,564

Append (cost=0.00..62.56 rows=6 width=28) (actual time=0.018..0.019 rows=0 loops=107,564)

  • Buffers: shared hit=3107295
17. 0.000 0.000 ↓ 0.0 0 107,564

Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc o (cost=0.00..0.00 rows=1 width=28) (actual time=0.000..0.000 rows=0 loops=107,564)

  • Filter: ((timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone) AND ((location_host)::text ~~ '%hrblock.ca'::text) AND (timestamp_ > (min(o_6.timestamp_))) AND (person_id = o_6.person_id) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
18. 215.128 215.128 ↓ 0.0 0 107,564

Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_1_pid_ses_ts on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_1 o_1 (cost=0.55..3.97 rows=1 width=28) (actual time=0.002..0.002 rows=0 loops=107,564)

  • Index Cond: ((person_id = o_6.person_id) AND (timestamp_ > (min(o_6.timestamp_))) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
  • Rows Removed by Filter: 0
  • Buffers: shared hit=454090
19. 430.256 430.256 ↓ 0.0 0 107,564

Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_2_pid_ses_ts on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_2 o_2 (cost=0.56..11.31 rows=1 width=28) (actual time=0.004..0.004 rows=0 loops=107,564)

  • Index Cond: ((person_id = o_6.person_id) AND (timestamp_ > (min(o_6.timestamp_))) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
  • Rows Removed by Filter: 2
  • Buffers: shared hit=631168
20. 537.820 537.820 ↓ 0.0 0 107,564

Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_3_pid_ses_ts on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_3 o_3 (cost=0.56..21.32 rows=1 width=28) (actual time=0.004..0.005 rows=0 loops=107,564)

  • Index Cond: ((person_id = o_6.person_id) AND (timestamp_ > (min(o_6.timestamp_))) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
  • Rows Removed by Filter: 2
  • Buffers: shared hit=700052
21. 645.384 645.384 ↓ 0.0 0 107,564

Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_4_pid_ses_ts on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_4 o_4 (cost=0.56..22.68 rows=1 width=28) (actual time=0.006..0.006 rows=0 loops=107,564)

  • Index Cond: ((person_id = o_6.person_id) AND (timestamp_ > (min(o_6.timestamp_))) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
  • Rows Removed by Filter: 4
  • Buffers: shared hit=874674
22. 215.128 215.128 ↓ 0.0 0 107,564

Index Scan using ep_ace8b421_634f_4060_9118_ffc36db704dc_2018_5_pid_ses_ts on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_5 o_5 (cost=0.56..3.28 rows=1 width=28) (actual time=0.002..0.002 rows=0 loops=107,564)

  • Index Cond: ((person_id = o_6.person_id) AND (timestamp_ > (min(o_6.timestamp_))) AND (timestamp_ >= '2018-01-01 07:00:00'::timestamp without time zone) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone))
  • Filter: (((location_host)::text ~~ '%hrblock.ca'::text) AND (((location_path)::text ~~ '/office-locator%'::text) OR ((location_path)::text ~~ '/stores%'::text) OR ((location_path)::text ~~ '/fr/localisateur-de-bureau%'::text) OR ((location_path)::text ~~ '/fr/quarter%'::text)))
  • Rows Removed by Filter: 0
  • Buffers: shared hit=447311
Planning time : 38.939 ms
Execution time : 7,821.389 ms