#1
⏱️ 90.35 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 510.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:
["grocery",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#3
⏱️ 483.06 мс
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:
["grocery",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#4
⏱️ 8.16 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4533815,4531886,2816262,2742043,2683719,2671430,2669776,2667577,2662458,2634027,2049531,2045396,1910051,1831786,1611230,1588636,1560678,1559519,1546573,1531752,1531746,1518867,1508463,1507474,1507326,1506487,1502751,1498034,1498021,1497481,1490638,1489901,true,766,1123,1254,410,446,1362,10,241]
#5
⏱️ 4.43 мс
select * from "stores" where "stores"."id" in (10, 241, 410, 1123, 1254, 1362)
#6
⏱️ 13.24 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4533815,4531886,2816262,2742043,2683719,2671430,2669776,2667577,2662458,2634027,2049531,2045396,1910051,1831786,1611230,1588636,1560678,1559519,1546573,1531752,1531746,1518867,1508463,1507474,1507326,1506487,1502751,1498034,1498021,1497481,1490638,1489901,0,766,1123,1254,410,446,1362,10,241]
#7
⏱️ 3.08 мс
select * from "stores" where "stores"."id" in (10, 241, 410, 446)
#8
⏱️ 8.38 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#9
⏱️ 5.18 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 11.32 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]