#2
⏱️ 407.84 мс
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",162,228,464,263,true,162,228,464,263]
#3
⏱️ 274.5 мс
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",162,228,464,263,true,162,228,464,263]
#4
⏱️ 13.17 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[1434320,1426115,726749,337813,252428,208252,208251,199537,182693,182692,181855,167091,165902,165076,164651,162201,161501,161314,159309,152699,152524,152328,152092,135582,135112,135019,135003,134463,134024,133044,132666,131659,true,162,228,464,263]
#6
⏱️ 12.15 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[1434320,1426115,726749,337813,252428,208252,208251,199537,182693,182692,181855,167091,165902,165076,164651,162201,161501,161314,159309,152699,152524,152328,152092,135582,135112,135019,135003,134463,134024,133044,132666,131659,0,162,228,464,263]