explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iuOF

Settings
# exclusive inclusive rows x rows loops node
1. 653.463 36,282.738 ↓ 3.2 869,358 1

Unique (cost=680,238.75..682,287.10 rows=273,114 width=778) (actual time=35,364.426..36,282.738 rows=869,358 loops=1)

2. 22,852.567 35,629.275 ↓ 3.2 870,317 1

Sort (cost=680,238.75..680,921.53 rows=273,114 width=778) (actual time=35,364.423..35,629.275 rows=870,317 loops=1)

  • Sort Key: p.price_key, f.flight_key
  • Sort Method: quicksort Memory: 908492kB
3. 1,962.107 12,776.708 ↓ 3.2 870,317 1

Hash Join (cost=597,422.44..655,577.72 rows=273,114 width=778) (actual time=10,223.873..12,776.708 rows=870,317 loops=1)

  • Hash Cond: (p.ap_id = l.ap_id)
4. 588.995 10,812.566 ↓ 3.2 870,330 1

Hash Join (cost=597,303.41..649,278.42 rows=273,114 width=469) (actual time=10,221.816..10,812.566 rows=870,330 loops=1)

  • Hash Cond: (f.flight_group_key = p.flight_group_key)
5. 40.717 40.717 ↑ 1.0 8,305 1

Index Scan using ix_flightsall_test_sst on flights_all_test f (cost=0.42..34,590.05 rows=8,350 width=225) (actual time=0.022..40.717 rows=8,305 loops=1)

  • Index Cond: (d3pf = false)
  • Filter: ((NOT d3pf) AND (seats >= 5))
  • Rows Removed by Filter: 2738
6. 4,388.870 10,182.854 ↑ 1.0 6,007,688 1

Hash (cost=522,206.88..522,206.88 rows=6,007,688 width=270) (actual time=10,182.854..10,182.854 rows=6,007,688 loops=1)

  • Buckets: 8388608 Batches: 1 Memory Usage: 1860803kB
7. 5,793.984 5,793.984 ↑ 1.0 6,007,688 1

Seq Scan on prices_1000_test p (cost=0.00..522,206.88 rows=6,007,688 width=270) (actual time=0.006..5,793.984 rows=6,007,688 loops=1)

8. 1.092 2.035 ↑ 1.0 2,846 1

Hash (cost=83.46..83.46 rows=2,846 width=85) (actual time=2.035..2.035 rows=2,846 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 363kB
9. 0.943 0.943 ↑ 1.0 2,846 1

Seq Scan on locations l (cost=0.00..83.46 rows=2,846 width=85) (actual time=0.006..0.943 rows=2,846 loops=1)

Planning time : 1.057 ms