explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ODkK

Settings
# exclusive inclusive rows x rows loops node
1. 13.956 205.377 ↓ 58.0 522 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 2.719 191.421 ↓ 43.5 174 3

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

3. 1.197 188.690 ↓ 43.5 174 3

Nested Loop (cost=2.37..15,109.61 rows=4 width=554) (actual time=2.231..188.690 rows=174 loops=3)

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

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

5. 3.908 186.938 ↓ 43.5 174 3

Nested Loop (cost=1.96..15,107.63 rows=4 width=447) (actual time=2.205..186.938 rows=174 loops=3)

6. 10.831 183.010 ↓ 43.5 174 3

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

7. 7.989 172.118 ↓ 43.5 174 3

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

8. 41.799 164.085 ↓ 43.5 174 3

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

9. 1.613 122.048 ↓ 25.0 175 3

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

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

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

11. 28.784 28.784 ↓ 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.497..28.784 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.521 0.521 ↑ 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.394..0.521 rows=1 loops=525)

  • Index Cond: (branchid = ca.vendor_id)
13. 0.007 0.007 ↑ 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.006..0.007 rows=1 loops=524)

  • Index Cond: (id = bd.branchid)
  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
14. 0.238 0.238 ↑ 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.238..0.238 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.044 0.044 ↑ 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.044..0.044 rows=1 loops=522)

  • Index Cond: (referenceid = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (typeid = 1))
16. 0.061 0.061 ↑ 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.060..0.061 rows=1 loops=522)

  • Index Cond: (restaurantid = b.restaurantid)
  • Filter: (isactive AND (NOT isdeleted))
17. 0.020 0.020 ↑ 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.016..0.020 rows=1 loops=522)

  • Index Cond: (restaurantid = b.restaurantid)
18. 0.002 0.002 ↓ 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.001..0.002 rows=0 loops=522)

  • Index Cond: (id = cr.upsellingcompanyid)
19. 0.005 0.005 ↑ 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.004..0.005 rows=1 loops=522)

  • Index Cond: (vendor_id = bd.branchid)
20. 0.012 0.012 ↑ 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.011..0.012 rows=1 loops=522)

  • Index Cond: (id = b.areaid)