explain.depesz.com

PostgreSQL's explain analyze made readable

Result: VjaE

Settings
# exclusive inclusive rows x rows loops node
1. 611.598 3,246.012 ↓ 2.4 2,246,666 1

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

  • Hash Cond: (e1_.best_practice_fk = e0_.id)
2. 1,460.071 2,634.319 ↓ 1.2 2,308,477 1

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

  • Hash Cond: (e1_.meta_flight_fk = e5_.id)
3. 1,036.897 1,036.897 ↑ 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.004..1,036.897 rows=7,014,665 loops=1)

4. 27.762 137.351 ↓ 1.0 139,787 1

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

  • Buckets: 262144 Batches: 1 Memory Usage: 6963kB
5. 109.589 109.589 ↓ 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.019..109.589 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
6. 0.007 0.095 ↓ 1.9 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
7. 0.016 0.088 ↓ 1.9 31 1

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

  • Hash Cond: (b4_.domain_fk = p3_.id)
8. 0.011 0.062 ↓ 1.9 31 1

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

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

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

10. 0.006 0.045 ↓ 1.9 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
11. 0.020 0.039 ↓ 1.9 31 1

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

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

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

13. 0.001 0.015 ↓ 1.9 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
14. 0.014 0.014 ↓ 1.9 31 1

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

  • Filter: is_visible_for_airline
  • Rows Removed by Filter: 2
15. 0.001 0.010 ↑ 1.0 7 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
16. 0.009 0.009 ↑ 1.0 7 1

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