explain.depesz.com

PostgreSQL's explain analyze made readable

Result: a6QG

Settings
# exclusive inclusive rows x rows loops node
1. 1.589 34.255 ↓ 517.0 517 1

Nested Loop (cost=1,002.53..16,764.87 rows=1 width=1,054) (actual time=1.064..34.255 rows=517 loops=1)

2. 1.207 31.632 ↓ 517.0 517 1

Nested Loop (cost=1,002.25..16,764.50 rows=1 width=1,024) (actual time=1.054..31.632 rows=517 loops=1)

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

Nested Loop Left Join (cost=1,001.97..16,764.08 rows=1 width=1,035) (actual time=1.047..28.874 rows=517 loops=1)

4. 1.086 27.635 ↓ 517.0 517 1

Nested Loop (cost=1,001.83..16,763.92 rows=1 width=917) (actual time=1.045..27.635 rows=517 loops=1)

  • Join Filter: (b.restaurantid = br.restaurantid)
5. 1.365 24.481 ↓ 517.0 517 1

Nested Loop (cost=1,001.54..16,763.60 rows=1 width=921) (actual time=1.038..24.481 rows=517 loops=1)

6. 1.198 20.531 ↓ 517.0 517 1

Nested Loop (cost=1,001.13..16,761.51 rows=1 width=863) (actual time=1.030..20.531 rows=517 loops=1)

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

Nested Loop (cost=1,000.85..16,761.15 rows=1 width=797) (actual time=1.023..17.265 rows=517 loops=1)

8. 0.000 15.294 ↓ 51.7 517 1

Gather (cost=1,000.57..16,757.11 rows=10 width=277) (actual time=1.015..15.294 rows=517 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
9. 1.041 17.376 ↓ 43.0 172 3

Nested Loop (cost=0.57..15,756.11 rows=4 width=277) (actual time=0.091..17.376 rows=172 loops=3)

10. 1.029 16.331 ↓ 24.7 173 3

Nested Loop (cost=0.29..15,752.92 rows=7 width=159) (actual time=0.082..16.331 rows=173 loops=3)

11. 15.298 15.298 ↓ 21.6 173 3

Parallel Seq Scan on tlb_vendordelivery_area ca (cost=0.00..15,720.99 rows=8 width=72) (actual time=0.061..15.298 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: 26932
12. 0.004 0.004 ↑ 1.0 1 520

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

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

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.46 rows=1 width=118) (actual time=0.004..0.004 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
14. 2.068 2.068 ↑ 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.003..0.004 rows=1 loops=517)

  • Index Cond: (referenceid = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (typeid = 1))
15. 2.068 2.068 ↑ 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.004 rows=1 loops=517)

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

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

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

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

  • Index Cond: (restaurantid = cr.restaurantid)
  • Filter: (isactive AND (NOT isdeleted))
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. 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)
Planning time : 10.343 ms
Execution time : 35.634 ms