explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Jeaj

Settings
# exclusive inclusive rows x rows loops node
1. 21.049 7,897.695 ↑ 200.0 1 1

GroupAggregate (cost=4,887,693.16..4,888,574.49 rows=200 width=72) (actual time=7,897.695..7,897.695 rows=1 loops=1)

  • Group Key: ('ALL'::text)
  • Buffers: shared hit=4692558
2. 27.273 7,876.646 ↓ 3.1 107,564 1

Sort (cost=4,887,693.16..4,887,780.89 rows=35,093 width=56) (actual time=7,871.680..7,876.646 rows=107,564 loops=1)

  • Sort Key: ('ALL'::text)
  • Sort Method: quicksort Memory: 8343kB
  • Buffers: shared hit=4692558
3. 64.930 7,849.373 ↓ 3.1 107,564 1

Nested Loop Left Join (cost=4,133,843.04..4,885,043.83 rows=35,093 width=56) (actual time=5,493.924..7,849.373 rows=107,564 loops=1)

  • Buffers: shared hit=4692555
4. 41.620 5,633.163 ↓ 3.1 107,564 1

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

  • Group Key: o.person_id, ('ALL'::text)
  • Buffers: shared hit=1585257
5. 0.000 5,591.543 ↓ 3.9 136,534 1

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

  • Workers Planned: 4
  • Workers Launched: 4
  • Buffers: shared hit=7968547
6. 72.110 27,542.210 ↓ 3.1 27,307 5

Partial GroupAggregate (cost=4,132,821.75..4,132,997.21 rows=8,773 width=56) (actual time=5,487.048..5,508.442 rows=27,307 loops=5)

  • Group Key: o.person_id, 'ALL'::text
  • Buffers: shared hit=7968547
7. 149.885 27,470.100 ↓ 6.1 53,293 5

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

  • Sort Key: o.person_id
  • Sort Method: quicksort Memory: 5689kB
  • Buffers: shared hit=7968547
8. 26.685 27,320.215 ↓ 6.1 53,293 5

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

  • Buffers: shared hit=7968519
9. 21.955 27,293.530 ↓ 6.1 53,293 5

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

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

Parallel Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc o (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. 360.760 360.760 ↓ 2.7 1,656 5

Parallel Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc_2018_1 o_1 (cost=0.00..89,420.94 rows=606 width=24) (actual time=0.156..72.152 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,808.760 4,808.760 ↓ 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_2 (cost=0.68..686,048.09 rows=3,572 width=24) (actual time=757.341..961.752 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: 17
  • Buffers: shared hit=1241283
13. 10,584.110 10,584.110 ↓ 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_3 (cost=0.81..1,548,345.67 rows=2,158 width=24) (actual time=1,773.937..2,116.822 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: 115
  • Buffers: shared hit=2742047
14. 10,947.795 10,947.795 ↓ 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_4 (cost=0.81..1,631,247.66 rows=2,192 width=24) (actual time=1,900.191..2,189.559 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: 128
  • Buffers: shared hit=3164357
15. 570.150 570.150 ↑ 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_5 (cost=0.56..177,097.08 rows=244 width=24) (actual time=0.480..114.030 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=701913
16. 0.000 2,151.280 ↓ 0.0 0 107,564

Limit (cost=21.23..21.23 rows=1 width=94) (actual time=0.020..0.020 rows=0 loops=107,564)

  • Buffers: shared hit=3107298
17. 107.564 2,151.280 ↓ 0.0 0 107,564

Sort (cost=21.23..21.25 rows=6 width=94) (actual time=0.020..0.020 rows=0 loops=107,564)

  • Sort Key: o_6.timestamp_
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared hit=3107298
18. 0.000 2,043.716 ↓ 0.0 0 107,564

Result (cost=0.00..21.20 rows=6 width=94) (actual time=0.018..0.019 rows=0 loops=107,564)

  • Buffers: shared hit=3107295
19. 0.000 2,043.716 ↓ 0.0 0 107,564

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

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

Seq Scan on event_page_ace8b421_634f_4060_9118_ffc36db704dc o_6 (cost=0.00..0.00 rows=1 width=8) (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 (timestamp_ > (min(o.timestamp_))) AND (timestamp_ <= '2018-05-01 05:59:59.999'::timestamp without time zone) AND ((location_host)::text ~~ '%hrblock.ca'::text) AND (person_id = o.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)))
21. 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_7 (cost=0.55..3.92 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=107,564)

  • Index Cond: ((person_id = o.person_id) 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) AND (timestamp_ > (min(o.timestamp_))) 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
22. 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_8 (cost=0.56..4.15 rows=1 width=8) (actual time=0.004..0.004 rows=0 loops=107,564)

  • Index Cond: ((person_id = o.person_id) 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) AND (timestamp_ > (min(o.timestamp_))) 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
23. 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_9 (cost=0.56..4.50 rows=1 width=8) (actual time=0.004..0.005 rows=0 loops=107,564)

  • Index Cond: ((person_id = o.person_id) 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) AND (timestamp_ > (min(o.timestamp_))) 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
24. 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_10 (cost=0.56..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=0 loops=107,564)

  • Index Cond: ((person_id = o.person_id) 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) AND (timestamp_ > (min(o.timestamp_))) 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
25. 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_11 (cost=0.56..4.00 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=107,564)

  • Index Cond: ((person_id = o.person_id) 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) AND (timestamp_ > (min(o.timestamp_))) 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 : 49.392 ms
Execution time : 7,899.168 ms