#2
⏱️ 130.18 мс
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:
["baby",127,true,127]
#3
⏱️ 38.61 мс
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:
["baby",127,true,127]
#4
⏱️ 9.18 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?)
Bindings:
[1434014,733716,702625,601214,427384,427160,310777,310574,160992,160991,135447,135093,135069,135026,131626,131169,130989,130973,129510,129437,122859,122624,114911,114252,112142,112138,112133,112130,112119,108836,108835,108834,true,127]
#6
⏱️ 9.15 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?)
Bindings:
[1434014,733716,702625,601214,427384,427160,310777,310574,160992,160991,135447,135093,135069,135026,131626,131169,130989,130973,129510,129437,122859,122624,114911,114252,112142,112138,112133,112130,112119,108836,108835,108834,0,127]