#2
⏱️ 104.37 мс
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",125,452,true,125,452]
#3
⏱️ 71.48 мс
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",125,452,true,125,452]
#4
⏱️ 11.19 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[2662602,101406,98574,2976294,2744913,2709750,2706046,2684675,2662706,2662692,2660991,2660699,2659912,2659907,2659890,2659816,2658145,2657558,2656914,2656907,2633565,2630368,190042,134081,133917,133140,132560,131874,131020,130899,130883,130319,true,125,452]
#6
⏱️ 8.54 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[2662602,101406,98574,2976294,2744913,2709750,2706046,2684675,2662706,2662692,2660991,2660699,2659912,2659907,2659890,2659816,2658145,2657558,2656914,2656907,2633565,2630368,190042,134081,133917,133140,132560,131874,131020,130899,130883,130319,0,125,452]