#2
⏱️ 363.95 мс
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:
["snacks",90,471,243,true,90,471,243]
#3
⏱️ 198.14 мс
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:
["snacks",90,471,243,true,90,471,243]
#4
⏱️ 28.14 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[2067877,1462584,1452459,1433560,1227637,726749,281449,270992,251286,242656,208251,199537,198610,198607,185964,181489,168863,165902,165422,165076,164593,164546,161501,161499,161397,152675,135582,135112,135019,134463,134024,133044,true,90,471,243]
#6
⏱️ 18.77 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?)
Bindings:
[2067877,1462584,1452459,1433560,1227637,726749,281449,270992,251286,242656,208251,199537,198610,198607,185964,181489,168863,165902,165422,165076,164593,164546,161501,161499,161397,152675,135582,135112,135019,134463,134024,133044,0,90,471,243]