#2
⏱️ 295.87 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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","kitchen_appliances",738,469,155,342,true,738,469,155,342]
#3
⏱️ 83.82 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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","kitchen_appliances",738,469,155,342,true,738,469,155,342]
#4
⏱️ 4.65 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2707089,2670268,2641224,101406,8775747,2986621,2976294,2878117,2845428,2716505,2706046,2677425,2676409,2662706,2662692,2662284,2660699,2659912,2659890,2659816,2659453,2658145,2657036,2640280,2633565,134081,133917,133140,133134,133131,133130,132560,true,738,469,155,342]
#6
⏱️ 10.24 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2707089,2670268,2641224,101406,8775747,2986621,2976294,2878117,2845428,2716505,2706046,2677425,2676409,2662706,2662692,2662284,2660699,2659912,2659890,2659816,2659453,2658145,2657036,2640280,2633565,134081,133917,133140,133134,133131,133130,132560,0,738,469,155,342]