#1
⏱️ 98.39 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netanya"]
#2
⏱️ 2387.89 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["pharmacy","personal_care",1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,true,1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267]
#3
⏱️ 320.61 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["pharmacy","personal_care",1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,true,1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267]
#4
⏱️ 13.1 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4984758,4644495,4528009,4340597,4102247,4101840,4095651,4044707,4029930,4029581,4023300,4000633,3971148,3941843,3934963,3934962,2799780,2799250,2683719,2637582,1912771,1717061,1644782,1560460,1516114,1515604,1499006,1499005,1499004,1497413,1496758,1489397,true,1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267]
#5
⏱️ 1.34 мс
select * from "stores" where "stores"."id" in (205, 219, 229, 236, 256, 267, 739, 1113, 1173, 1224, 1311, 1315, 1326, 1390, 1395)
#6
⏱️ 6.04 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4984758,4644495,4528009,4340597,4102247,4101840,4095651,4044707,4029930,4029581,4023300,4000633,3971148,3941843,3934963,3934962,2799780,2799250,2683719,2637582,1912771,1717061,1644782,1560460,1516114,1515604,1499006,1499005,1499004,1497413,1496758,1489397,0,1113,708,739,753,773,236,96,112,325,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267]
#7
⏱️ 0.92 мс
select * from "stores" where "stores"."id" in (205, 219, 229, 256, 267, 428, 438, 451, 499, 554, 619, 708, 739, 753, 773)
#8
⏱️ 1.2 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netanya"]
#9
⏱️ 0.99 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 1.56 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]