explain.depesz.com

PostgreSQL's explain analyze made readable

Result: n7R4 : amy1

Settings
# exclusive inclusive rows x rows loops node
1. 1.681 106.858 ↓ 517.0 517 1

Nested Loop (cost=1,098.13..34,817.07 rows=1 width=5,691) (actual time=5.185..106.858 rows=517 loops=1)

2. 1.351 103.626 ↓ 517.0 517 1

Nested Loop (cost=1,097.86..34,808.76 rows=1 width=5,159) (actual time=5.164..103.626 rows=517 loops=1)

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

Nested Loop Left Join (cost=1,097.57..34,808.39 rows=1 width=5,170) (actual time=5.148..100.207 rows=517 loops=1)

4. 2.003 94.600 ↓ 517.0 517 1

Nested Loop (cost=1,097.43..34,808.23 rows=1 width=5,052) (actual time=1.083..94.600 rows=517 loops=1)

  • Join Filter: (ca.vendor_id = bd.branchid)
5. 1.636 76.570 ↓ 517.0 517 1

Nested Loop (cost=1,001.49..34,292.70 rows=1 width=3,467) (actual time=1.067..76.570 rows=517 loops=1)

  • Join Filter: (b.restaurantid = r.id)
6. 1.528 72.339 ↓ 519.0 519 1

Nested Loop (cost=1,001.24..34,292.27 rows=1 width=1,884) (actual time=1.052..72.339 rows=519 loops=1)

  • Join Filter: (b.restaurantid = br.restaurantid)
7. 0.966 64.583 ↓ 519.0 519 1

Nested Loop (cost=1,000.97..34,291.89 rows=1 width=1,872) (actual time=1.039..64.583 rows=519 loops=1)

  • Join Filter: (b.restaurantid = sl.referenceid)
8. 1.486 61.022 ↓ 519.0 519 1

Nested Loop (cost=1,000.69..34,291.48 rows=1 width=1,352) (actual time=1.021..61.022 rows=519 loops=1)

9. 9.283 56.422 ↓ 519.0 519 1

Nested Loop (cost=1,000.27..34,283.04 rows=1 width=1,294) (actual time=1.005..56.422 rows=519 loops=1)

10. 0.000 44.539 ↓ 520.0 520 1

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

  • Workers Planned: 2
  • Workers Launched: 2
11. 53.696 53.696 ↓ 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.182..53.696 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. 2.600 2.600 ↑ 1.0 1 520

Index Scan using mwq_branch_pkey on mwq_branch b (cost=0.28..8.30 rows=1 width=1,190) (actual time=0.005..0.005 rows=1 loops=520)

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

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

  • Index Cond: (restaurantid = b.restaurantid)
14. 2.595 2.595 ↑ 1.0 1 519

Index Scan using tlb_slug_referenceid_idx on tlb_slug sl (cost=0.28..0.39 rows=1 width=520) (actual time=0.004..0.005 rows=1 loops=519)

  • Index Cond: (referenceid = cr.restaurantid)
  • Filter: ((NOT isdeleted) AND (typeid = 1))
15. 6.228 6.228 ↑ 1.0 1 519

Index Scan using tlb_restaurant_brand_rest_brand_idx on tlb_restaurant_brand br (cost=0.28..0.37 rows=1 width=12) (actual time=0.012..0.012 rows=1 loops=519)

  • Index Cond: (restaurantid = cr.restaurantid)
  • Filter: (isactive AND (NOT isdeleted))
16. 2.595 2.595 ↑ 1.0 1 519

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.25..0.42 rows=1 width=1,599) (actual time=0.005..0.005 rows=1 loops=519)

  • Index Cond: (id = cr.restaurantid)
  • Filter: ((NOT isdeleted) AND (NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 0
17. 5.687 16.027 ↑ 111.0 1 517

Bitmap Heap Scan on tlb_branch_details bd (cost=95.94..514.14 rows=111 width=1,585) (actual time=0.030..0.031 rows=1 loops=517)

  • Recheck Cond: (branchid = b.id)
  • Heap Blocks: exact=517
18. 10.340 10.340 ↑ 111.0 1 517

Bitmap Index Scan on tlb_branch_details_branchid_brndtype_idx (cost=0.00..95.91 rows=111 width=0) (actual time=0.020..0.020 rows=1 loops=517)

  • Index Cond: (branchid = b.id)
19. 4.653 4.653 ↓ 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.009..0.009 rows=0 loops=517)

  • Index Cond: (id = cr.upsellingcompanyid)
20. 2.068 2.068 ↑ 1.0 1 517

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

  • Index Cond: (vendor_id = bd.branchid)
21. 1.551 1.551 ↑ 1.0 1 517

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

  • Index Cond: (id = b.areaid)
Planning time : 27.781 ms
Execution time : 107.647 ms