explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MoNX

Settings
# exclusive inclusive rows x rows loops node
1. 0.036 8.537 ↑ 2.5 2 1

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

  • Sort Key: (CASE WHEN COALESCE(group_dishes.is_extra_group_dish, false) THEN 1 ELSE 0 END), group_dishes."order", group_dishes.name
  • Sort Method: quicksort Memory: 25kB
2. 0.010 8.501 ↑ 2.5 2 1

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

3. 0.044 0.044 ↑ 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.040..0.044 rows=1 loops=1)

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

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

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

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

6. 0.007 8.413 ↑ 9.0 4 1

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

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

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

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