explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Gv0

Settings
# exclusive inclusive rows x rows loops node
1. 639.312 35,975.458 ↓ 3.2 869,358 1

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

2. 22,616.893 35,336.146 ↓ 3.2 870,317 1

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

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

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

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

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

  • Hash Cond: (f.flight_group_key = p.flight_group_key)
5. 39.946 39.946 ↑ 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.020..39.946 rows=8,305 loops=1)

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

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

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

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

8. 0.934 1.771 ↑ 1.0 2,846 1

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

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

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

Planning time : 1.073 ms