#2
⏱️ 94.32 мс
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",646,142,true,646,142]
#3
⏱️ 71.55 мс
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",646,142,true,646,142]
#4
⏱️ 16.32 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[1434014,702625,601214,427384,427160,310777,259875,198441,160992,160991,135447,135093,135069,132399,132398,131626,131169,130989,130973,126115,125897,125598,124425,122859,122624,114911,114252,112142,112133,112130,112119,108836,true,646,142]
#6
⏱️ 13.52 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[1434014,702625,601214,427384,427160,310777,259875,198441,160992,160991,135447,135093,135069,132399,132398,131626,131169,130989,130973,126115,125897,125598,124425,122859,122624,114911,114252,112142,112133,112130,112119,108836,0,646,142]