explain.depesz.com

PostgreSQL's explain analyze made readable

Result: YqFs

Settings
# exclusive inclusive rows x rows loops node
1. 1.273 69.798 ↓ 58.0 522 1

Nested Loop (cost=2.52..28,217.26 rows=9 width=584) (actual time=0.371..69.798 rows=522 loops=1)

2. 0.950 67.481 ↓ 58.0 522 1

Nested Loop (cost=2.24..28,213.22 rows=9 width=554) (actual time=0.347..67.481 rows=522 loops=1)

  • Join Filter: (ca.vendor_id = cpt.vendor_id)
3. 0.699 64.965 ↓ 58.0 522 1

Nested Loop Left Join (cost=1.95..28,209.97 rows=9 width=565) (actual time=0.336..64.965 rows=522 loops=1)

  • Join Filter: (ub.id = cr.upsellingcompanyid)
  • Rows Removed by Join Filter: 937
4. 0.800 63.744 ↓ 58.0 522 1

Nested Loop (cost=1.95..28,208.67 rows=9 width=447) (actual time=0.319..63.744 rows=522 loops=1)

5. 0.670 58.246 ↓ 58.0 522 1

Nested Loop (cost=1.54..28,174.87 rows=9 width=405) (actual time=0.301..58.246 rows=522 loops=1)

6. 0.839 56.010 ↓ 58.0 522 1

Nested Loop (cost=1.26..28,171.76 rows=9 width=387) (actual time=0.291..56.010 rows=522 loops=1)

7. 0.809 53.605 ↓ 52.2 522 1

Nested Loop (cost=0.98..28,167.91 rows=10 width=375) (actual time=0.280..53.605 rows=522 loops=1)

8. 1.157 50.176 ↓ 30.8 524 1

Nested Loop (cost=0.70..28,155.90 rows=17 width=257) (actual time=0.263..50.176 rows=524 loops=1)

  • Join Filter: (ca.vendor_id = b.id)
9. 1.095 46.923 ↓ 27.6 524 1

Nested Loop (cost=0.41..28,147.04 rows=19 width=170) (actual time=0.238..46.923 rows=524 loops=1)

10. 40.578 40.578 ↓ 27.6 525 1

Seq Scan on tlb_vendordelivery_area ca (cost=0.00..27,986.68 rows=19 width=104) (actual time=0.185..40.578 rows=525 loops=1)

  • 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: 80178
11. 5.250 5.250 ↑ 1.0 1 525

Index Scan using tlb_branch_details_branchid_brndtype_idx on tlb_branch_details bd (cost=0.41..8.43 rows=1 width=66) (actual time=0.009..0.010 rows=1 loops=525)

  • Index Cond: (branchid = ca.vendor_id)
12. 2.096 2.096 ↑ 1.0 1 524

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

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

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.70 rows=1 width=118) (actual time=0.004..0.005 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
14. 1.566 1.566 ↑ 1.0 1 522

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

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

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

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

Index Scan using "tlb_CommonRestuarantFields_restid_idx" on tlb_commonrestuarantfields cr (cost=0.41..3.75 rows=1 width=58) (actual time=0.007..0.009 rows=1 loops=522)

  • Index Cond: (restaurantid = b.restaurantid)
17. 0.515 0.522 ↑ 1.0 2 522

Materialize (cost=0.00..1.03 rows=2 width=122) (actual time=0.000..0.001 rows=2 loops=522)

18. 0.007 0.007 ↑ 1.0 2 1

Seq Scan on tgb_upsellingcompany ub (cost=0.00..1.02 rows=2 width=122) (actual time=0.006..0.007 rows=2 loops=1)

19. 1.566 1.566 ↑ 1.0 1 522

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

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

Index Scan using mwq_area_pkey on mwq_area a (cost=0.28..0.43 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=522)

  • Index Cond: (id = b.areaid)
Planning time : 6.499 ms
Execution time : 70.300 ms