#2
⏱️ 153.17 мс
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",756,633,true,756,633]
#3
⏱️ 127.59 мс
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",756,633,true,756,633]
#4
⏱️ 16.13 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[2864871,2634246,1474648,1434014,1432362,189931,182567,168788,160991,135447,135446,135093,135069,135026,132399,132398,131626,131169,131028,130989,130973,129510,129437,126553,126225,126115,126111,125897,125598,124425,123118,122906,true,756,633]
#5
⏱️ 18.84 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[2864871,2634246,1474648,1434014,1432362,189931,182567,168788,160991,135447,135446,135093,135069,135026,132399,132398,131626,131169,131028,130989,130973,129510,129437,126553,126225,126115,126111,125897,125598,124425,123118,122906,0,756,633]