explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9Omd

Settings
# exclusive inclusive rows x rows loops node
1. 0.939 141.490 ↓ 517.0 517 1

Nested Loop (cost=96.46..1,085.63 rows=1 width=1,054) (actual time=5.145..141.490 rows=517 loops=1)

2. 0.524 139.517 ↓ 517.0 517 1

Nested Loop (cost=96.18..1,085.25 rows=1 width=1,024) (actual time=5.132..139.517 rows=517 loops=1)

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

Nested Loop Left Join (cost=95.89..1,084.83 rows=1 width=1,035) (actual time=5.120..137.442 rows=517 loops=1)

4. 1.036 136.484 ↓ 517.0 517 1

Nested Loop (cost=95.75..1,084.67 rows=1 width=917) (actual time=5.114..136.484 rows=517 loops=1)

5. 0.683 133.380 ↓ 517.0 517 1

Nested Loop (cost=95.34..1,082.59 rows=1 width=875) (actual time=5.103..133.380 rows=517 loops=1)

6. 0.926 131.146 ↓ 517.0 517 1

Nested Loop (cost=95.06..1,082.24 rows=1 width=863) (actual time=5.094..131.146 rows=517 loops=1)

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

Nested Loop (cost=94.77..1,081.89 rows=1 width=797) (actual time=5.079..128.669 rows=517 loops=1)

8. 12.852 60.977 ↓ 3,091.0 9,273 1

Nested Loop (cost=94.48..1,030.04 rows=3 width=725) (actual time=4.993..60.977 rows=9,273 loops=1)

9. 10.794 23.853 ↓ 2,427.2 12,136 1

Hash Join (cost=94.20..1,027.76 rows=5 width=607) (actual time=4.976..23.853 rows=12,136 loops=1)

  • Hash Cond: (b.restaurantid = sl.referenceid)
10. 8.106 8.106 ↓ 1.0 12,619 1

Seq Scan on mwq_branch b (cost=0.00..886.25 rows=12,602 width=87) (actual time=0.007..8.106 rows=12,619 loops=1)

  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 1052
11. 2.333 4.953 ↓ 2,316.0 6,948 1

Hash (cost=94.16..94.16 rows=3 width=520) (actual time=4.953..4.953 rows=6,948 loops=1)

  • Buckets: 8192 (originally 1024) Batches: 1 (originally 1) Memory Usage: 418kB
12. 2.620 2.620 ↓ 2,316.0 6,948 1

Seq Scan on tlb_slug sl (cost=0.00..94.16 rows=3 width=520) (actual time=0.003..2.620 rows=6,948 loops=1)

  • Filter: ((NOT isdeleted) AND (typeid = 1))
  • Rows Removed by Filter: 9
13. 24.272 24.272 ↑ 1.0 1 12,136

Index Scan using mwq_restaurant_pkey on mwq_restaurant r (cost=0.28..0.46 rows=1 width=118) (actual time=0.002..0.002 rows=1 loops=12,136)

  • Index Cond: (id = b.restaurantid)
  • Filter: ((NOT isdeleted) AND (status = ANY ('{0,1,2}'::integer[])))
  • Rows Removed by Filter: 0
14. 64.911 64.911 ↓ 0.0 0 9,273

Index Scan using tlb_vendordelivery_area_vendor_id_idx on tlb_vendordelivery_area ca (cost=0.29..17.27 rows=1 width=72) (actual time=0.006..0.007 rows=0 loops=9,273)

  • Index Cond: (vendor_id = b.id)
  • 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: 9
15. 1.551 1.551 ↑ 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.002..0.003 rows=1 loops=517)

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

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.002..0.003 rows=1 loops=517)

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

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

  • Index Cond: (restaurantid = b.restaurantid)
18. 0.000 0.000 ↓ 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.000..0.000 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 : 7.785 ms