#1
⏱️ 230.08 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bat-yam"]
#2
⏱️ 541.76 мс
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",751,124,232,1121,1250,1260,618,318,409,459,676,675,677,true,751,124,232,1121,1250,1260,618,318,409,459,676,675,677]
#3
⏱️ 354.73 мс
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",751,124,232,1121,1250,1260,618,318,409,459,676,675,677,true,751,124,232,1121,1250,1260,618,318,409,459,676,675,677]
#4
⏱️ 87.42 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2799780,1717061,1644119,1641216,1613566,1560460,1559544,1559223,1559185,1558180,1545926,1543412,1532184,1524934,1519996,1518864,1518167,1515633,1514625,1514601,1514525,1507541,1505646,1502783,1500597,1499977,1498815,1498805,1498080,1498079,1498061,1497502,true,751,124,232,1121,1250,1260,618,318,409,459,676,675,677]
#5
⏱️ 10.84 мс
select * from "stores" where "stores"."id" in (232, 1121, 1250, 1260)
#6
⏱️ 23.54 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2799780,1717061,1644119,1641216,1613566,1560460,1559544,1559223,1559185,1558180,1545926,1543412,1532184,1524934,1519996,1518864,1518167,1515633,1514625,1514601,1514525,1507541,1505646,1502783,1500597,1499977,1498815,1498805,1498080,1498079,1498061,1497502,0,751,124,232,1121,1250,1260,618,318,409,459,676,675,677]
#7
⏱️ 13.34 мс
select * from "stores" where "stores"."id" in (232, 459, 751)
#8
⏱️ 12.68 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bat-yam"]
#9
⏱️ 17.71 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 17.15 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]