#2
⏱️ 222.27 мс
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:
["meat",187,5,true,187,5]
#3
⏱️ 149.76 мс
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:
["meat",187,5,true,187,5]
#4
⏱️ 17.56 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[1427805,310280,251644,124785,123529,108230,108075,108071,107885,107853,107851,105322,105321,105210,104603,104602,104596,104319,104207,101896,101891,101880,100998,100918,100917,100916,100915,100913,100912,100911,100910,100909,true,187,5]
#6
⏱️ 12.31 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[1427805,310280,251644,124785,123529,108230,108075,108071,107885,107853,107851,105322,105321,105210,104603,104602,104596,104319,104207,101896,101891,101880,100998,100918,100917,100916,100915,100913,100912,100911,100910,100909,0,187,5]