explain.depesz.com

PostgreSQL's explain analyze made readable

Result: dbJ

Settings
# exclusive inclusive rows x rows loops node
1. 0.032 9.817 ↑ 2.5 2 1

Sort (cost=486.22..486.23 rows=5 width=65) (actual time=9.816..9.817 rows=2 loops=1)

  • Sort Key: group_dishes.is_extra_group_dish, group_dishes."order", group_dishes.name
  • Sort Method: quicksort Memory: 25kB
2. 0.011 9.785 ↑ 2.5 2 1

Nested Loop (cost=438.62..486.16 rows=5 width=65) (actual time=9.777..9.785 rows=2 loops=1)

3. 0.054 0.054 ↑ 1.0 1 1

Index Scan using eatery_shipping_fees_eatery_id_unique_idx on eatery_shipping_fees (cost=0.28..8.30 rows=1 width=4) (actual time=0.050..0.054 rows=1 loops=1)

  • Index Cond: (eatery_id = 1346382)
  • Filter: (active AND (NOT closed) AND (city_id = 50))
4. 0.026 9.720 ↑ 2.5 2 1

Hash Join (cost=438.34..477.81 rows=5 width=65) (actual time=9.717..9.720 rows=2 loops=1)

  • Hash Cond: (eatery_supply_menus.group_dish_id = group_dishes.id)
5. 0.012 0.012 ↑ 356.7 6 1

Seq Scan on eatery_supply_menus (cost=0.00..31.40 rows=2,140 width=4) (actual time=0.011..0.012 rows=6 loops=1)

6. 0.011 9.682 ↑ 9.0 4 1

Hash (cost=437.89..437.89 rows=36 width=65) (actual time=9.682..9.682 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 1kB
7. 9.671 9.671 ↑ 9.0 4 1

Seq Scan on group_dishes (cost=0.00..437.89 rows=36 width=65) (actual time=9.518..9.671 rows=4 loops=1)

  • Filter: (active AND is_published AND (eatery_id = 1346382))
  • Rows Removed by Filter: 16484