explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MhiG

Settings
# exclusive inclusive rows x rows loops node
1. 0.972 142.748 ↓ 517.0 517 1

Nested Loop (cost=96.46..1,085.63 rows=1 width=1,054) (actual time=5.175..142.748 rows=517 loops=1)

2. 0.522 140.742 ↓ 517.0 517 1

Nested Loop (cost=96.18..1,085.25 rows=1 width=1,024) (actual time=5.163..140.742 rows=517 loops=1)

  • Join Filter: (ca.vendor_id = cpt.vendorid)
3. 0.947 138.669 ↓ 517.0 517 1

Nested Loop Left Join (cost=95.89..1,084.83 rows=1 width=1,035) (actual time=5.151..138.669 rows=517 loops=1)

4. 1.062 137.722 ↓ 517.0 517 1

Nested Loop (cost=95.75..1,084.67 rows=1 width=917) (actual time=5.143..137.722 rows=517 loops=1)

5. 0.698 134.592 ↓ 517.0 517 1

Nested Loop (cost=95.34..1,082.59 rows=1 width=875) (actual time=5.133..134.592 rows=517 loops=1)

6. 1.015 132.343 ↓ 517.0 517 1

Nested Loop (cost=95.06..1,082.24 rows=1 width=863) (actual time=5.123..132.343 rows=517 loops=1)

  • Join Filter: (ca.vendor_id = bd.branchid)
7. 3.370 129.777 ↓ 517.0 517 1

Nested Loop (cost=94.77..1,081.89 rows=1 width=797) (actual time=5.113..129.777 rows=517 loops=1)

8. 13.138 61.496 ↓ 3,091.0 9,273 1

Nested Loop (cost=94.48..1,030.04 rows=3 width=725) (actual time=5.023..61.496 rows=9,273 loops=1)

9. 10.921 24.086 ↓ 2,427.2 12,136 1

Hash Join (cost=94.20..1,027.76 rows=5 width=607) (actual time=5.006..24.086 rows=12,136 loops=1)

  • Hash Cond: (b.restaurantid = sl.referenceid)
10. 8.182 8.182 ↓ 1.0 12,619 1

Seq Scan on mwq_branch b (cost=0.00..886.25 rows=12,602 width=87) (actual time=0.010..8.182 rows=12,619 loops=1)

  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 1052
11. 2.371 4.983 ↓ 2,316.0 6,948 1

Hash (cost=94.16..94.16 rows=3 width=520) (actual time=4.983..4.983 rows=6,948 loops=1)

  • Buckets: 8192 (originally 1024) Batches: 1 (originally 1) Memory Usage: 418kB
12. 2.612 2.612 ↓ 2,316.0 6,948 1

Seq Scan on tlb_slug sl (cost=0.00..94.16 rows=3 width=520) (actual time=0.003..2.612 rows=6,948 loops=1)

  • Filter: ((NOT isdeleted) AND (typeid = 1))
  • Rows Removed by Filter: 9
13. 24.272 24.272 ↑ 1.0 1 12,136

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.46 rows=1 width=118) (actual time=0.002..0.002 rows=1 loops=12,136)

  • Index Cond: (id = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 0
14. 64.911 64.911 ↓ 0.0 0 9,273

Index Scan using tlb_vendordelivery_area_vendor_id_idx on tlb_vendordelivery_area ca (cost=0.29..17.27 rows=1 width=72) (actual time=0.006..0.007 rows=0 loops=9,273)

  • Index Cond: (vendor_id = b.id)
  • Filter: ((NOT isdeleted) AND (coverage_polygon ~ '0101000020E6100000429770E82D0A48405376FA415D4C3D40'::geometry) AND (coveragepolygonstatus = ANY ('{0,1,2}'::integer[])) AND _st_contains(coverage_polygon, '0101000020E6100000429770E82D0A48405376FA415D4C3D40'::geometry))
  • Rows Removed by Filter: 9
15. 1.551 1.551 ↑ 1.0 1 517

Index Scan using tlb_branch_details_branchid_brndtype_idx on tlb_branch_details bd (cost=0.29..0.34 rows=1 width=66) (actual time=0.003..0.003 rows=1 loops=517)

  • Index Cond: (branchid = b.id)
16. 1.551 1.551 ↑ 1.0 1 517

Index Scan using tlb_restaurant_brand_rest_brand_idx on tlb_restaurant_brand br (cost=0.28..0.34 rows=1 width=12) (actual time=0.002..0.003 rows=1 loops=517)

  • Index Cond: (restaurantid = b.restaurantid)
  • Filter: (isactive AND (NOT isdeleted))
17. 2.068 2.068 ↑ 1.0 1 517

Index Scan using "tlb_CommonRestuarantFields_restid_idx" on tlb_commonrestuarantfields cr (cost=0.41..2.07 rows=1 width=58) (actual time=0.003..0.004 rows=1 loops=517)

  • Index Cond: (restaurantid = b.restaurantid)
18. 0.000 0.000 ↓ 0.0 0 517

Index Scan using tgb_upsellingcompany_pkey on tgb_upsellingcompany ub (cost=0.14..0.16 rows=1 width=122) (actual time=0.000..0.000 rows=0 loops=517)

  • Index Cond: (id = cr.upsellingcompanyid)
19. 1.551 1.551 ↑ 1.0 1 517

Index Scan using tlb_vendor_timingstatus_pkey on tlb_vendor_timingstatus cpt (cost=0.29..0.41 rows=1 width=5) (actual time=0.003..0.003 rows=1 loops=517)

  • Index Cond: (vendorid = bd.branchid)
20. 1.034 1.034 ↑ 1.0 1 517

Index Scan using mwq_area_pkey on mwq_area a (cost=0.28..0.36 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=517)

  • Index Cond: (id = b.areaid)