explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8wmb

Settings
# exclusive inclusive rows x rows loops node
1. 0.255 11,105.497 ↑ 1.0 15 1

Nested Loop Left Join (cost=2.06..86,609.08 rows=15 width=592) (actual time=4,352.649..11,105.497 rows=15 loops=1)

2. 0.034 10,939.012 ↑ 1.0 15 1

Limit (cost=2.06..58,468.48 rows=15 width=560) (actual time=4,250.020..10,939.012 rows=15 loops=1)

3. 1,036.734 10,938.978 ↑ 59,751.3 15 1

Nested Loop (cost=2.06..3,493,446,995.67 rows=896,270 width=560) (actual time=4,250.015..10,938.978 rows=15 loops=1)

  • Join Filter: (a.sid = b.sid)
  • Rows Removed by Join Filter: 3769867
4. 0.089 277.348 ↑ 56,016.9 16 1

Merge Append (cost=2.06..1,582,427.04 rows=896,270 width=517) (actual time=170.406..277.348 rows=16 loops=1)

  • Sort Key: a.navigationstarttime DESC
5. 0.024 0.024 ↓ 0.0 0 1

Index Scan Backward using rumpagetable_11_2019_kohls_navst_sid_pageinstance_idx on rumpagetable_11_2019_kohls a (cost=0.12..8.14 rows=1 width=258) (actual time=0.024..0.024 rows=0 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
6. 0.006 0.006 ↓ 0.0 0 1

Index Scan Backward using rumpagetable_20191102024102_3_kohls_navst_sid_pageinstance_idx on rumpagetable_20191102024102_3_kohls a_1 (cost=0.14..8.16 rows=1 width=258) (actual time=0.006..0.006 rows=0 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
7. 152.400 152.400 ↑ 24,846.2 16 1

Index Scan Backward using rumpagetable_20191113065127_1_kohls_navst_pageid_idx on rumpagetable_20191113065127_1_kohls a_2 (cost=0.43..690,704.11 rows=397,540 width=517) (actual time=45.541..152.400 rows=16 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
8. 41.242 41.242 ↑ 322,874.0 1 1

Index Scan Backward using rumpagetable_20191113072645_kohls_navst_pageid_idx on rumpagetable_20191113072645_kohls a_3 (cost=0.43..560,944.88 rows=322,874 width=517) (actual time=41.242..41.242 rows=1 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
9. 41.825 41.825 ↑ 105,585.0 1 1

Index Scan Backward using rumpagetable_20191113080001_3_kohls_navst_pageid_idx on rumpagetable_20191113080001_3_kohls a_4 (cost=0.42..183,346.55 rows=105,585 width=520) (actual time=41.825..41.825 rows=1 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
10. 41.762 41.762 ↑ 70,269.0 1 1

Index Scan Backward using rumpagetable_20191113080001_4_kohls_navst_pageid_idx on rumpagetable_20191113080001_4_kohls a_5 (cost=0.42..122,006.19 rows=70,269 width=517) (actual time=41.762..41.762 rows=1 loops=1)

  • Index Cond: ((navigationstarttime >= 185135400) AND (navigationstarttime < 185138940))
11. 372.290 9,624.896 ↑ 1.1 235,618 16

Materialize (cost=0.00..174,311.26 rows=259,719 width=54) (actual time=200.831..601.556 rows=235,618 loops=16)

12. 28.214 9,252.606 ↑ 1.1 244,386 1

Append (cost=0.00..173,012.66 rows=259,719 width=54) (actual time=3,213.231..9,252.606 rows=244,386 loops=1)

13. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on rumsessiontable_11_2019_kohls b (cost=0.00..0.00 rows=1 width=416) (actual time=0.001..0.001 rows=0 loops=1)

  • Filter: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
14. 0.011 0.011 ↓ 0.0 0 1

Index Scan using rumsessiontable_20191102024102_3_kohls_sessionst_strid_trmnlid_ on rumsessiontable_20191102024102_3_kohls b_1 (cost=0.14..8.16 rows=1 width=416) (actual time=0.011..0.011 rows=0 loops=1)

  • Index Cond: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
15. 4,445.821 4,445.821 ↑ 1.1 105,915 1

Seq Scan on rumsessiontable_20191113065127_1_kohls b_2 (cost=0.00..73,556.60 rows=112,668 width=54) (actual time=3,213.212..4,445.821 rows=105,915 loops=1)

  • Filter: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
  • Rows Removed by Filter: 674058
16. 3,014.742 3,014.742 ↑ 1.1 89,179 1

Seq Scan on rumsessiontable_20191113072645_kohls b_3 (cost=0.00..62,770.31 rows=95,277 width=55) (actual time=1,518.849..3,014.742 rows=89,179 loops=1)

  • Filter: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
  • Rows Removed by Filter: 577175
17. 1,072.209 1,072.209 ↑ 1.1 29,848 1

Seq Scan on rumsessiontable_20191113080001_3_kohls b_4 (cost=0.00..22,033.03 rows=31,554 width=54) (actual time=505.767..1,072.209 rows=29,848 loops=1)

  • Filter: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
  • Rows Removed by Filter: 204021
18. 691.608 691.608 ↑ 1.0 19,444 1

Seq Scan on rumsessiontable_20191113080001_4_kohls b_5 (cost=0.00..14,644.56 rows=20,218 width=54) (actual time=268.288..691.608 rows=19,444 loops=1)

  • Filter: ((sessionstarttime >= 185135400) AND (sessionstarttime <= 185138940))
  • Rows Removed by Filter: 136060
19. 0.075 166.230 ↓ 0.0 0 15

Subquery Scan on inq2 (cost=0.00..1,876.02 rows=1 width=36) (actual time=11.082..11.082 rows=0 loops=15)

  • Filter: (a.pageinstance = inq2.pageinstance)
20. 0.210 166.155 ↓ 0.0 0 15

GroupAggregate (cost=0.00..1,875.94 rows=6 width=23) (actual time=11.077..11.077 rows=0 loops=15)

  • Group Key: nveventsrecordtable_11_2019_kohls.sid, nveventsrecordtable_11_2019_kohls.pageinstance
21. 0.750 165.945 ↓ 0.0 0 15

Append (cost=0.00..1,875.79 rows=6 width=23) (actual time=11.063..11.063 rows=0 loops=15)

22. 0.015 0.015 ↓ 0.0 0 15

Seq Scan on nveventsrecordtable_11_2019_kohls (cost=0.00..0.00 rows=1 width=28) (actual time=0.001..0.001 rows=0 loops=15)

  • Filter: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
23. 0.300 0.300 ↓ 0.0 0 15

Index Scan using nveventsrecordtable_20191102024102_3_kohls_ts_sid_pi_idx on nveventsrecordtable_20191102024102_3_kohls (cost=0.15..8.21 rows=1 width=28) (actual time=0.020..0.020 rows=0 loops=15)

  • Index Cond: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
24. 32.610 32.610 ↓ 0.0 0 15

Index Scan using nveventsrecordtable_20191113065127_1_kohls_ts_sid_pi_idx on nveventsrecordtable_20191113065127_1_kohls (cost=0.42..35.66 rows=1 width=20) (actual time=2.174..2.174 rows=0 loops=15)

  • Index Cond: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
25. 77.460 77.460 ↓ 0.0 0 15

Index Scan using nveventsrecordtable_20191113072645_kohls_ts_sid_pi_idx on nveventsrecordtable_20191113072645_kohls (cost=0.42..1,471.56 rows=1 width=20) (actual time=5.164..5.164 rows=0 loops=15)

  • Index Cond: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
26. 35.130 35.130 ↓ 0.0 0 15

Index Scan using nveventsrecordtable_20191113080001_4_kohls_ts_sid_pi_idx on nveventsrecordtable_20191113080001_4_kohls (cost=0.41..345.41 rows=1 width=21) (actual time=2.342..2.342 rows=0 loops=15)

  • Index Cond: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
27. 19.680 19.680 ↓ 0.0 0 15

Index Scan using nveventsrecordtable_20191113080001_3_kohls_ts_sid_pi_idx on nveventsrecordtable_20191113080001_3_kohls (cost=0.28..14.96 rows=1 width=21) (actual time=1.312..1.312 rows=0 loops=15)

  • Index Cond: (("timestamp" >= 185135400) AND ("timestamp" <= 185138940) AND (sid = a.sid) AND (pageinstance = a.pageinstance))
Planning time : 3,912.702 ms
Execution time : 11,173.489 ms