#2
⏱️ 139.53 мс
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",153,199,227,true,153,199,227]
#3
⏱️ 125.78 мс
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",153,199,227,true,153,199,227]
#4
⏱️ 7.78 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[726749,185964,182693,182692,162201,161499,161314,135112,135019,134463,134024,133044,131922,128982,127829,126856,126804,126531,126289,126189,125329,125163,124318,115607,115606,114522,113996,113833,112671,112472,108847,108846,true,153,199,227]
#6
⏱️ 10.74 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?)
Bindings:
[726749,185964,182693,182692,162201,161499,161314,135112,135019,134463,134024,133044,131922,128982,127829,126856,126804,126531,126289,126189,125329,125163,124318,115607,115606,114522,113996,113833,112671,112472,108847,108846,0,153,199,227]