#2
⏱️ 295.85 мс
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:
["appliances",599,121,197,242,353,501,true,599,121,197,242,353,501]
#3
⏱️ 238.18 мс
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:
["appliances",599,121,197,242,353,501,true,599,121,197,242,353,501]
#4
⏱️ 11.33 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[1429426,1429424,249788,244506,207687,207685,190949,101406,98575,98574,4523585,210259,210252,210251,210247,210245,210242,209105,207693,207692,207094,202057,200591,200584,200583,198952,198854,197123,197122,196102,196101,196100,true,599,121,197,242,353,501]
#6
⏱️ 17.32 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[1429426,1429424,249788,244506,207687,207685,190949,101406,98575,98574,4523585,210259,210252,210251,210247,210245,210242,209105,207693,207692,207094,202057,200591,200584,200583,198952,198854,197123,197122,196102,196101,196100,0,599,121,197,242,353,501]