explain.depesz.com

PostgreSQL's explain analyze made readable

Result: I6AZ : WARM

Settings
# exclusive inclusive rows x rows loops node
1. 34.655 5,859.679 ↓ 3.1 107,564 1

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

  • Group Key: o.person_id, ('ALL'::text)
  • Buffers: shared hit=1605224
2. 0.000 5,825.024 ↓ 3.9 136,614 1

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

  • Workers Planned: 4
  • Workers Launched: 4
  • Buffers: shared hit=7964060
3. 72.635 28,786.625 ↓ 3.1 27,323 5

Partial GroupAggregate (cost=4,132,821.75..4,132,997.21 rows=8,773 width=56) (actual time=5,736.320..5,757.325 rows=27,323 loops=5)

  • Group Key: o.person_id, 'ALL'::text
  • Buffers: shared hit=7964060
4. 147.340 28,713.990 ↓ 6.1 53,293 5

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

  • Sort Key: o.person_id
  • Sort Method: quicksort Memory: 5822kB
  • Buffers: shared hit=7964060
5. 28.015 28,566.650 ↓ 6.1 53,293 5

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

  • Buffers: shared hit=7964032
6. 22.665 28,538.635 ↓ 6.1 53,293 5

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

  • Buffers: shared hit=7964032
7. 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))
8. 392.445 392.445 ↓ 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.194..78.489 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
9. 5,112.135 5,112.135 ↓ 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=796.581..1,022.427 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=1240717
10. 10,957.555 10,957.555 ↓ 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,808.013..2,191.511 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=2740353
11. 11,472.715 11,472.715 ↓ 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,994.832..2,294.543 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: 116
  • Buffers: shared hit=3162136
12. 581.120 581.120 ↑ 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.811..116.224 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=701907
Planning time : 25.165 ms
Execution time : 5,865.102 ms