explain.depesz.com

PostgreSQL's explain analyze made readable

Result: zVzq

Settings
# exclusive inclusive rows x rows loops node
1. 465.824 3,848.559 ↓ 1.9 31 1

HashAggregate (cost=261,303.46..261,303.62 rows=16 width=4) (actual time=3,848.554..3,848.559 rows=31 loops=1)

  • Group Key: e0_.id
2. 664.550 3,382.735 ↓ 2.4 2,246,666 1

Hash Join (cost=18,413.56..258,946.58 rows=942,752 width=4) (actual time=138.047..3,382.735 rows=2,246,666 loops=1)

  • Hash Cond: (e1_.best_practice_fk = e0_.id)
3. 1,551.662 2,718.088 ↓ 1.2 2,308,477 1

Hash Join (cost=18,407.10..242,221.00 rows=1,944,426 width=4) (actual time=137.944..2,718.088 rows=2,308,477 loops=1)

  • Hash Cond: (e1_.meta_flight_fk = e5_.id)
4. 1,028.908 1,028.908 ↑ 1.0 7,014,665 1

Seq Scan on meta_flight_bp_values e1_ (cost=0.00..178,064.65 rows=7,014,665 width=8) (actual time=0.003..1,028.908 rows=7,014,665 loops=1)

5. 28.761 137.518 ↓ 1.0 139,787 1

Hash (cost=16,670.01..16,670.01 rows=138,967 width=4) (actual time=137.518..137.518 rows=139,787 loops=1)

  • Buckets: 262144 Batches: 1 Memory Usage: 6963kB
6. 108.757 108.757 ↓ 1.0 139,787 1

Seq Scan on meta_flight e5_ (cost=0.00..16,670.01 rows=138,967 width=4) (actual time=0.022..108.757 rows=139,787 loops=1)

  • Filter: ((dep_date >= '2019-02-01 00:00:00'::timestamp without time zone) AND (dep_date <= '2020-01-21 23:59:59.999999'::timestamp without time zone))
  • Rows Removed by Filter: 361547
7. 0.005 0.097 ↓ 1.9 31 1

Hash (cost=6.26..6.26 rows=16 width=4) (actual time=0.097..0.097 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
8. 0.011 0.092 ↓ 1.9 31 1

Hash Join (cost=4.53..6.26 rows=16 width=4) (actual time=0.066..0.092 rows=31 loops=1)

  • Hash Cond: (b4_.domain_fk = p3_.id)
9. 0.018 0.072 ↓ 1.9 31 1

Hash Join (cost=3.37..5.01 rows=16 width=8) (actual time=0.054..0.072 rows=31 loops=1)

  • Hash Cond: (b4_.bp_fk = e0_.bp_definition_fk)
10. 0.008 0.008 ↑ 1.0 35 1

Seq Scan on bp_domain_link b4_ (cost=0.00..1.35 rows=35 width=8) (actual time=0.002..0.008 rows=35 loops=1)

11. 0.006 0.046 ↓ 1.9 31 1

Hash (cost=3.17..3.17 rows=16 width=12) (actual time=0.046..0.046 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
12. 0.016 0.040 ↓ 1.9 31 1

Hash Join (cost=1.53..3.17 rows=16 width=12) (actual time=0.024..0.040 rows=31 loops=1)

  • Hash Cond: (p2_.id = e0_.bp_definition_fk)
13. 0.008 0.008 ↑ 1.0 35 1

Seq Scan on bp_definition p2_ (cost=0.00..1.35 rows=35 width=4) (actual time=0.004..0.008 rows=35 loops=1)

14. 0.009 0.016 ↓ 1.9 31 1

Hash (cost=1.33..1.33 rows=16 width=8) (actual time=0.016..0.016 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
15. 0.007 0.007 ↓ 1.9 31 1

Seq Scan on best_practice e0_ (cost=0.00..1.33 rows=16 width=8) (actual time=0.003..0.007 rows=31 loops=1)

  • Filter: is_visible_for_airline
  • Rows Removed by Filter: 2
16. 0.001 0.009 ↑ 1.0 7 1

Hash (cost=1.07..1.07 rows=7 width=4) (actual time=0.009..0.009 rows=7 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
17. 0.008 0.008 ↑ 1.0 7 1

Seq Scan on domain p3_ (cost=0.00..1.07 rows=7 width=4) (actual time=0.005..0.008 rows=7 loops=1)