explain.depesz.com

PostgreSQL's explain analyze made readable

Result: CLpD

Settings
# exclusive inclusive rows x rows loops node
1. 18.982 49.045 ↓ 58.0 522 1

Gather (cost=1,002.65..16,112.09 rows=9 width=584) (actual time=2.488..49.045 rows=522 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 0.851 30.063 ↓ 43.5 174 3

Nested Loop (cost=2.65..15,111.14 rows=4 width=584) (actual time=0.395..30.063 rows=174 loops=3)

3. 2.226 29.210 ↓ 43.5 174 3

Nested Loop (cost=2.37..15,109.60 rows=4 width=554) (actual time=0.362..29.210 rows=174 loops=3)

  • Join Filter: (ca.vendor_id = cpt.vendor_id)
4. 0.307 26.973 ↓ 43.5 174 3

Nested Loop Left Join (cost=2.08..15,108.25 rows=4 width=565) (actual time=0.342..26.973 rows=174 loops=3)

5. 1.353 26.665 ↓ 43.5 174 3

Nested Loop (cost=1.95..15,107.62 rows=4 width=447) (actual time=0.338..26.665 rows=174 loops=3)

6. 0.863 25.306 ↓ 43.5 174 3

Nested Loop (cost=1.54..15,099.24 rows=4 width=405) (actual time=0.320..25.306 rows=174 loops=3)

7. 2.136 24.440 ↓ 43.5 174 3

Nested Loop (cost=1.26..15,097.85 rows=4 width=393) (actual time=0.303..24.440 rows=174 loops=3)

8. 1.081 22.293 ↓ 43.5 174 3

Nested Loop (cost=0.98..15,096.54 rows=4 width=375) (actual time=0.282..22.293 rows=174 loops=3)

9. 2.394 21.208 ↓ 25.0 175 3

Nested Loop (cost=0.70..15,092.96 rows=7 width=257) (actual time=0.263..21.208 rows=175 loops=3)

  • Join Filter: (ca.vendor_id = b.id)
10. 1.318 18.802 ↓ 21.9 175 3

Nested Loop (cost=0.41..15,089.82 rows=8 width=170) (actual time=0.230..18.802 rows=175 loops=3)

11. 17.478 17.478 ↓ 21.9 175 3

Parallel Seq Scan on tlb_vendordelivery_area ca (cost=0.00..15,054.30 rows=8 width=104) (actual time=0.185..17.478 rows=175 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: 26763
12. 0.006 0.006 ↑ 1.0 1 525

Index Scan using tlb_branch_details_branchid_brndtype_idx on tlb_branch_details bd (cost=0.41..4.43 rows=1 width=66) (actual time=0.005..0.006 rows=1 loops=525)

  • Index Cond: (branchid = ca.vendor_id)
13. 0.012 0.012 ↑ 1.0 1 524

Index Scan using mwq_branch_pkey on mwq_branch b (cost=0.29..0.38 rows=1 width=87) (actual time=0.012..0.012 rows=1 loops=524)

  • Index Cond: (id = bd.branchid)
  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
14. 0.004 0.004 ↑ 1.0 1 524

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.50 rows=1 width=118) (actual time=0.004..0.004 rows=1 loops=524)

  • Index Cond: (id = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 0
15. 0.011 0.011 ↑ 1.0 1 522

Index Scan using tlb_slug_referenceid_idx on tlb_slug sl (cost=0.28..0.32 rows=1 width=18) (actual time=0.011..0.011 rows=1 loops=522)

  • Index Cond: (referenceid = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (typeid = 1))
16. 0.003 0.003 ↑ 1.0 1 522

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.003..0.003 rows=1 loops=522)

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

Index Scan using "tlb_CommonRestuarantFields_restid_idx" on tlb_commonrestuarantfields cr (cost=0.41..2.09 rows=1 width=58) (actual time=0.005..0.006 rows=1 loops=522)

  • Index Cond: (restaurantid = b.restaurantid)
18. 0.001 0.001 ↓ 0.0 0 522

Index Scan using tgb_upsellingcompany_pkey on tgb_upsellingcompany ub (cost=0.13..0.15 rows=1 width=122) (actual time=0.000..0.001 rows=0 loops=522)

  • Index Cond: (id = cr.upsellingcompanyid)
19. 0.011 0.011 ↑ 1.0 1 522

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

  • Index Cond: (vendor_id = bd.branchid)
20. 0.002 0.002 ↑ 1.0 1 522

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=522)

  • Index Cond: (id = b.areaid)