explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DTiI

Settings
# exclusive inclusive rows x rows loops node
1. 0.042 14.606 ↑ 385.5 4 1

Sort (cost=846.95..850.81 rows=1,542 width=65) (actual time=14.606..14.606 rows=4 loops=1)

  • Sort Key: group_dishes.is_extra_group_dish, group_dishes."order", group_dishes.name
  • Sort Method: quicksort Memory: 25kB
2. 0.012 14.564 ↑ 385.5 4 1

Hash Join (cost=665.78..765.30 rows=1,542 width=65) (actual time=14.554..14.564 rows=4 loops=1)

  • Hash Cond: (group_dishes.eatery_id = eatery_shipping_fees.eatery_id)
3. 0.032 12.405 ↑ 477.0 4 1

Hash Join (cost=580.32..654.88 rows=1,908 width=65) (actual time=12.396..12.405 rows=4 loops=1)

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

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

5. 4.364 12.367 ↑ 1.0 14,670 1

Hash (cost=396.71..396.71 rows=14,689 width=65) (actual time=12.367..12.367 rows=14,670 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 1397kB
6. 8.003 8.003 ↑ 1.0 14,670 1

Seq Scan on group_dishes (cost=0.00..396.71 rows=14,689 width=65) (actual time=0.008..8.003 rows=14,670 loops=1)

  • Filter: (active AND is_published)
  • Rows Removed by Filter: 1818
7. 0.643 2.147 ↓ 1.0 1,930 1

Hash (cost=61.50..61.50 rows=1,917 width=4) (actual time=2.147..2.147 rows=1,930 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
8. 1.504 1.504 ↓ 1.0 1,930 1

Seq Scan on eatery_shipping_fees (cost=0.00..61.50 rows=1,917 width=4) (actual time=0.019..1.504 rows=1,930 loops=1)

  • Filter: (active AND (NOT closed) AND (city_id = 50))
  • Rows Removed by Filter: 191