#1
⏱️ 143.15 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"herzliya"]
#2
⏱️ 2584.1 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["household","pet_supplies",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#3
⏱️ 2200.76 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["household","pet_supplies",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#4
⏱️ 16.4 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[920607,788257,282708,282707,211624,188424,188423,180231,176178,168944,168943,168942,168941,168785,166438,166428,164705,164704,164701,164700,164699,154680,153923,153009,152990,152989,152982,152980,152976,152975,152974,135632,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#5
⏱️ 7.29 мс
select * from "stores" where "stores"."id" in (198)
#6
⏱️ 19.42 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[920607,788257,282708,282707,211624,188424,188423,180231,176178,168944,168943,168942,168941,168785,166438,166428,164705,164704,164701,164700,164699,154680,153923,153009,152990,152989,152982,152980,152976,152975,152974,135632,0,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#7
⏱️ 5.42 мс
select * from "stores" where "stores"."id" in (198, 542, 560, 626)
#8
⏱️ 4.77 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["herzliya"]
#9
⏱️ 11.51 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 14.64 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]