#1
⏱️ 114.49 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rehovot"]
#2
⏱️ 1234.05 мс
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:
["pharmacy",1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#3
⏱️ 1149.03 мс
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:
["pharmacy",1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#4
⏱️ 23.48 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4121710,4116844,4095651,4068252,4050696,4046926,4043734,4024818,4024814,4024812,4024346,4023987,4015675,3997623,3996717,3996635,3995183,2799780,1912771,1717061,1616267,1613566,1560460,1559544,1545926,1518864,1518167,1515633,1507541,1505646,1502783,1500597,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#5
⏱️ 7.4 мс
select * from "stores" where "stores"."id" in (215, 1120, 1218, 1282, 1298, 1350, 1402)
#6
⏱️ 23.53 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4121710,4116844,4095651,4068252,4050696,4046926,4043734,4024818,4024814,4024812,4024346,4023987,4015675,3997623,3996717,3996635,3995183,2799780,1912771,1717061,1616267,1613566,1560460,1559544,1545926,1518864,1518167,1515633,1507541,1505646,1502783,1500597,0,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#7
⏱️ 6.95 мс
select * from "stores" where "stores"."id" in (215, 550, 597, 768)
#8
⏱️ 9.18 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rehovot"]
#9
⏱️ 12.88 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 11.16 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]