#1
⏱️ 96.86 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"raanana"]
#2
⏱️ 739.28 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["dairy","cheese",1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#3
⏱️ 416.38 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) order by CASE WHEN master_products.image_url IS NOT NULL AND master_products.image_url != '' THEN 0 ELSE 1 END, "master_products"."id" desc limit 32 offset 0
Bindings:
["dairy","cheese",1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#4
⏱️ 8.25 мс
select * from "canonical_products" where "canonical_products"."id" in (199)
#5
⏱️ 3.79 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[199]
#6
⏱️ 24.08 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[11135534,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4125470,4105860,4085256,4033418,4032127,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,2611879,2611240,2611239,2611238,1454587,1453876,1452649,1431217,4019922,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#7
⏱️ 3.48 мс
select * from "stores" where "stores"."id" in (100, 140)
#8
⏱️ 25.32 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 4085256 THEN 4085256 WHEN sp.master_product_id = 4019922 THEN 4085256 ELSE sp.master_product_id END limit 500
Bindings:
[11135534,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4125470,4105860,4085256,4033418,4032127,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,2611879,2611240,2611239,2611238,1454587,1453876,1452649,1431217,4019922,0,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#9
⏱️ 21.67 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[35691698,48435358,35117097,2386749,2390791,2390790,2390789,2390783,2390785,2390786,31412569,2390777,2387798,24549174,3433592,78027470,77987727,3449221,77985538,3448639,3429631,3449220,18055731,15865135,11602539,12301098,12296660,12296661,12296659,12296658,12289060,12296657,12296652,2966907,12291928,12294080,12295106,12298812,12301092]
#10
⏱️ 7.1 мс
select * from "stores" where "stores"."id" in (100, 140, 460, 585, 637)
#11
⏱️ 3.35 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["raanana"]
#12
⏱️ 2.86 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 5.74 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]