#1
⏱️ 226.2 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"herzliya"]
#2
⏱️ 2563.88 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_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:
["meat",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#3
⏱️ 1692.71 мс
select * from "master_products" where "barcode" is not null and "category_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:
["meat",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#4
⏱️ 35.8 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[39028558,7438688,4987385,4983927,4644537,4577383,4546136,4534950,4434352,4394626,4364802,4348240,4243482,4172600,4159668,4053832,4053828,4052705,4030510,4030508,4030505,4030504,4002925,3984965,3980196,3975413,3975217,3972756,3972457,3972456,3971168,3970740,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#5
⏱️ 11.43 мс
select * from "stores" where "stores"."id" in (542)
#6
⏱️ 19.73 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[39028558,7438688,4987385,4983927,4644537,4577383,4546136,4534950,4434352,4394626,4364802,4348240,4243482,4172600,4159668,4053832,4053828,4052705,4030510,4030508,4030505,4030504,4002925,3984965,3980196,3975413,3975217,3972756,3972457,3972456,3971168,3970740,0,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#7
⏱️ 12.67 мс
select * from "stores" where "stores"."id" in (494, 542, 560, 626)
#8
⏱️ 11.78 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["herzliya"]
#9
⏱️ 16.53 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 9 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]