explain.depesz.com

PostgreSQL's explain analyze made readable

Result: D0qq : Slow plan

Settings
# exclusive inclusive rows x rows loops node
1. 0.044 2,701,302.133 ↑ 2.4 5 1

Result (cost=0.00..8.60 rows=12 width=60) (actual time=2,628,079.863..2,701,302.133 rows=5 loops=1)

2. 0.008 2,701,302.089 ↑ 2.4 5 1

Append (cost=0.00..8.45 rows=12 width=943) (actual time=2,628,079.860..2,701,302.089 rows=5 loops=1)

3. 0.005 0.005 ↓ 0.0 0 1

Seq Scan on events_6135259 events (cost=0.00..0.00 rows=1 width=56) (actual time=0.005..0.005 rows=0 loops=1)

  • Filter: ((user_id >= '(1404198904,0)'::app_user_id) AND (user_id <= '(1404198904,9007199254740991)'::app_user_id) AND ((data ->> 'object'::text) IS NULL) AND ((data ->> 'type'::text) = 'click'::text) AND ((data ->> 'library'::text) = 'web'::text) AND ((((data ->> 'domain'::text) = 'www.redacted.ca'::text) AND ((data ->> 'path'::text) = '/l/pricing/'::text) AND ((data ->> 'hierarchy'::text) ~~ '%[href=#pp];%|%[type=button];%'::text)) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=up_to_100_tab_view_click];'::text) <> 0) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=up_to_250_tab_view_click];'::text) <> 0) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=unlimited_tab_view_click];'::text) <> 0)))
4. 2,701,302.076 2,701,302.076 ↑ 2.2 5
- 33,824,307
1

Index Scan using other_events_6135259_pim_evdef_4a32b0e4548c_idx on other_events_6135259 events_1 (cost=0.56..8.39 rows=11 width=1,024) (actual time=2,628,079.853..2,701,302.076 rows=5 loops=1)

  • Filter: ((((data ->> 'domain'::text) = 'www.redacted.ca'::text) AND ((data ->> 'path'::text) = '/l/pricing/'::text) AND ((data ->> 'hierarchy'::text) ~~ '%[href=#pp];%|%[type=button];%'::text)) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=up_to_100_tab_view_click];'::text) <> 0) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=up_to_250_tab_view_click];'::text) <> 0) OR (strpos((data ->> 'hierarchy'::text), '[data-heap-id=unlimited_tab_view_click];'::text) <> 0))
  • Rows Removed by Filter: 33,824,307
Planning time : 64.386 ms
Execution time : 2,701,302.472 ms