explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7QqL

Settings
# exclusive inclusive rows x rows loops node
1. 201.722 1,379.567 ↓ 6.2 227,388 1

Sort (cost=85,693.82..85,784.86 rows=36,419 width=20) (actual time=1,330.674..1,379.567 rows=227,388 loops=1)

  • Sort Key: ce1.start_time, ce1.last_event_seating_asked_at
  • Sort Method: quicksort Memory: 23909kB
2. 78.054 1,177.845 ↓ 6.2 227,388 1

Nested Loop Anti Join (cost=1.23..82,934.64 rows=36,419 width=20) (actual time=0.753..1,177.845 rows=227,388 loops=1)

  • Join Filter: (eslq1.event_id = ce1.id)
3. 57.754 1,099.791 ↓ 6.2 227,388 1

Nested Loop (cost=0.98..82,386.09 rows=36,419 width=20) (actual time=0.038..1,099.791 rows=227,388 loops=1)

  • Join Filter: (ce1.consecutive_unsuccessful_event_seating_lookup_count < c1.maximum_consecutive_unsuccessful_event_seating_lookup_count)
4. 0.638 6.821 ↑ 1.3 2,212 1

Nested Loop (cost=0.56..2,527.29 rows=2,870 width=8) (actual time=0.023..6.821 rows=2,212 loops=1)

5. 1.453 1.453 ↑ 1.0 430 1

Index Scan using cinema_pkey on cinema c1 (cost=0.28..567.64 rows=430 width=8) (actual time=0.018..1.453 rows=430 loops=1)

  • Filter: (data_aggregation_disabled_at IS NULL)
  • Rows Removed by Filter: 386
6. 4.730 4.730 ↓ 1.2 5 430

Index Scan using public_venue_cinema_id0_idx on venue v1 (cost=0.28..4.52 rows=4 width=8) (actual time=0.003..0.011 rows=5 loops=430)

  • Index Cond: (cinema_id = c1.id)
7. 1,035.216 1,035.216 ↑ 1.1 103 2,212

Index Scan using current_event_venue_id_idx on current_event ce1 (cost=0.42..26.41 rows=113 width=28) (actual time=0.045..0.468 rows=103 loops=2,212)

  • Index Cond: (venue_id = v1.id)
  • Filter: ((event_seating_updated_at IS NOT NULL) AND (unrecoverable_error IS NULL) AND (start_time > now()))
  • Rows Removed by Filter: 127
8. 0.000 0.000 ↓ 0.0 0 227,388

Materialize (cost=0.25..2.27 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=227,388)

9. 0.697 0.697 ↓ 0.0 0 1

Index Only Scan using event_seating_lookup_queue_event_id_idx on event_seating_lookup_queue eslq1 (cost=0.25..2.27 rows=1 width=4) (actual time=0.697..0.697 rows=0 loops=1)

  • Heap Fetches: 2514
Planning time : 0.991 ms
Execution time : 1,394.133 ms