#1
⏱️ 116.31 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 3540.73 мс
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:
["grocery","sauces_oils",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#3
⏱️ 2989.6 мс
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:
["grocery","sauces_oils",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#4
⏱️ 161.97 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[117041541,75165094,66413048,61866507,36527595,32430635,32080559,30691571,25603232,8775770,8616048,8383672,4991028,4988808,4988696,4987860,4987789,4987622,4987621,4985212,4984746,4984221,4823975,4544898,4544894,4159848,4156797,4146399,4126286,4125284,4107295,4085362,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#5
⏱️ 8.22 мс
select * from "stores" where "stores"."id" in (203, 209, 250, 540, 704, 733)
#6
⏱️ 59.55 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[117041541,75165094,66413048,61866507,36527595,32430635,32080559,30691571,25603232,8775770,8616048,8383672,4991028,4988808,4988696,4987860,4987789,4987622,4987621,4985212,4984746,4984221,4823975,4544898,4544894,4159848,4156797,4146399,4126286,4125284,4107295,4085362,0,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 16.69 мс
select * from "stores" where "stores"."id" in (423, 540, 543, 604, 609, 628, 704, 712, 733, 770)
#8
⏱️ 9.68 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#9
⏱️ 15.46 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 11.09 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]