explain.depesz.com

PostgreSQL's explain analyze made readable

Result: FSU

Settings
# exclusive inclusive rows x rows loops node
1. 1.605 271.464 ↓ 517.0 517 1

Nested Loop (cost=1,002.53..34,281.30 rows=1 width=1,086) (actual time=0.772..271.464 rows=517 loops=1)

2. 6.939 268.308 ↓ 517.0 517 1

Nested Loop (cost=1,002.25..34,280.93 rows=1 width=1,056) (actual time=0.762..268.308 rows=517 loops=1)

  • Join Filter: (ca.vendor_id = cpt.vendor_id)
3. 0.932 234.485 ↓ 517.0 517 1

Nested Loop Left Join (cost=1,001.96..34,280.58 rows=1 width=1,067) (actual time=0.752..234.485 rows=517 loops=1)

4. 2.817 233.036 ↓ 517.0 517 1

Nested Loop (cost=1,001.82..34,280.42 rows=1 width=949) (actual time=0.749..233.036 rows=517 loops=1)

5. 1.331 223.498 ↓ 517.0 517 1

Nested Loop (cost=1,001.54..34,280.01 rows=1 width=445) (actual time=0.740..223.498 rows=517 loops=1)

6. 1.128 207.691 ↓ 517.0 517 1

Nested Loop (cost=1,001.13..34,277.92 rows=1 width=387) (actual time=0.730..207.691 rows=517 loops=1)

7. 16.604 203.978 ↓ 517.0 517 1

Nested Loop (cost=1,000.85..34,277.57 rows=1 width=375) (actual time=0.722..203.978 rows=517 loops=1)

8. 1.305 178.551 ↓ 519.0 519 1

Nested Loop (cost=1,000.57..34,277.12 rows=1 width=257) (actual time=0.711..178.551 rows=519 loops=1)

  • Join Filter: (ca.vendor_id = bd.branchid)
9. 0.000 174.651 ↓ 519.0 519 1

Nested Loop (cost=1,000.28..34,276.76 rows=1 width=191) (actual time=0.701..174.651 rows=519 loops=1)

10. 59.540 193.223 ↓ 520.0 520 1

Gather (cost=1,000.00..34,272.45 rows=1 width=104) (actual time=0.684..193.223 rows=520 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
11. 133.683 133.683 ↓ 173.0 173 3

Parallel Seq Scan on tlb_vendordelivery_area ca (cost=0.00..33,272.35 rows=1 width=104) (actual time=0.073..133.683 rows=173 loops=3)

  • 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: 26862
12. 14.040 14.040 ↑ 1.0 1 520

Index Scan using mwq_branch_pkey on mwq_branch b (cost=0.29..4.31 rows=1 width=87) (actual time=0.027..0.027 rows=1 loops=520)

  • Index Cond: (id = ca.vendor_id)
  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
13. 2.595 2.595 ↑ 1.0 1 519

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.004..0.005 rows=1 loops=519)

  • Index Cond: (branchid = b.id)
14. 8.823 8.823 ↑ 1.0 1 519

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.45 rows=1 width=118) (actual time=0.017..0.017 rows=1 loops=519)

  • Index Cond: (id = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 0
15. 2.585 2.585 ↑ 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.004..0.005 rows=1 loops=517)

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

Index Scan using "tlb_CommonRestuarantFields_restid_idx" on tlb_commonrestuarantfields cr (cost=0.41..2.09 rows=1 width=58) (actual time=0.027..0.028 rows=1 loops=517)

  • Index Cond: (restaurantid = b.restaurantid)
17. 6.721 6.721 ↑ 1.0 1 517

Index Scan using tlb_slug_referenceid_idx on tlb_slug sl (cost=0.28..0.39 rows=1 width=520) (actual time=0.012..0.013 rows=1 loops=517)

  • Index Cond: (referenceid = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (typeid = 1))
18. 0.517 0.517 ↓ 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.001..0.001 rows=0 loops=517)

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

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

  • Index Cond: (vendor_id = bd.branchid)
20. 1.551 1.551 ↑ 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.003..0.003 rows=1 loops=517)

  • Index Cond: (id = b.areaid)