#1
⏱️ 154.62 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netanya"]
#2
⏱️ 1637.92 мс
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",1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#3
⏱️ 630.76 мс
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",1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#4
⏱️ 22.55 мс
select * from "canonical_products" where "canonical_products"."id" in (155)
#5
⏱️ 10.95 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[155]
#6
⏱️ 30.28 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[36601256,11135534,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4242981,4213380,4157788,4125470,4105860,4032127,4008548,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,2611879,2611240,2611239,2611238,2427312,4286085,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#7
⏱️ 4.64 мс
select * from "stores" where "stores"."id" in (95, 96, 105, 112, 407)
#8
⏱️ 24.2 мс
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 = 4286085 THEN 4157788 WHEN sp.master_product_id = 4157788 THEN 4157788 ELSE sp.master_product_id END limit 500
Bindings:
[36601256,11135534,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4242981,4213380,4157788,4125470,4105860,4032127,4008548,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,2611879,2611240,2611239,2611238,2427312,4286085,0,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#9
⏱️ 65.34 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[27534746,35742731,35797845,62581226,35491585,35062977,29370902,29370901,29371505,29360086,29371645,29370897,29370898,1994953,31152759,31152758,31152757,31152753,31156003,31152754,2127658,31152747,31152749,2133707,10770515,11168030,11168029,11168025,11166178,11168026,11168021,31309914,12013228,24770647,78339195,78340615,78311637,78340614,24779127,3566649,78338045,12326923,12326924,12326922,12326921,12319467,12326920,12326915,2985986,11668843,12322191,12324843,12325869,12329573,12332091,14410622,3797576,37208989,78794857,3332489,77813534,7415186,7415185,77811228,1774297,1774296,1774969,1774968,1766075,1775085,1767468,10283249,1774292,1772233,32934459,3144556,3144557,3144555,3144554,3140869,3144553,3144548,7749710,3142329,3143480,3144002,3145705,3146956]
#10
⏱️ 20.3 мс
select * from "stores" where "stores"."id" in (95, 96, 105, 112, 407, 428, 438, 451, 476, 554, 619, 708, 753, 773)
#11
⏱️ 13.99 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netanya"]
#12
⏱️ 9.11 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 12.15 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]