#1
⏱️ 146.25 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"karmiel"]
#2
⏱️ 875.47 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["snacks",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#3
⏱️ 738.79 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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:
["snacks",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#4
⏱️ 21.91 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4001173,1197590,1197086,726749,696828,694022,398871,367098,337813,336105,320326,303593,281755,281449,264936,264842,256724,252791,252428,251398,251397,251286,249057,249056,245555,245368,244332,244312,243870,243098,242656,242189,true,743,119,1241,545,1325,398,29,98,186,450,684]
#5
⏱️ 7.15 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 186, 398)
#6
⏱️ 34.16 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4001173,1197590,1197086,726749,696828,694022,398871,367098,337813,336105,320326,303593,281755,281449,264936,264842,256724,252791,252428,251398,251397,251286,249057,249056,245555,245368,244332,244312,243870,243098,242656,242189,0,743,119,1241,545,1325,398,29,98,186,450,684]
#7
⏱️ 9.59 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 186, 398, 450, 545)
#8
⏱️ 7.94 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["karmiel"]
#9
⏱️ 7.34 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 4.82 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]