#2
⏱️ 205.91 мс
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",1265,262,128,true,1265,262,128]
#3
⏱️ 182.95 мс
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",1265,262,128,true,1265,262,128]
#4
⏱️ 14.73 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[749850,398871,367098,320326,281755,281449,264936,264842,252428,251398,251397,251286,249056,245368,244312,244037,244036,243870,243098,242656,242189,199537,185964,182438,182437,181855,180263,173280,171192,170530,170167,170166,true,1265,262,128]
#6
⏱️ 16.72 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?)
Bindings:
[749850,398871,367098,320326,281755,281449,264936,264842,252428,251398,251397,251286,249056,245368,244312,244037,244036,243870,243098,242656,242189,199537,185964,182438,182437,181855,180263,173280,171192,170530,170167,170166,0,1265,262,128]