#2
⏱️ 238.13 мс
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",738,469,155,342,true,738,469,155,342]
#3
⏱️ 137.73 мс
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",738,469,155,342,true,738,469,155,342]
#4
⏱️ 7.94 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[1434014,1432376,427384,310777,198441,160992,160991,135447,135446,135093,135069,135026,131626,131169,131028,130989,130973,129510,129437,126553,126225,126115,126111,125897,125598,124425,123118,122906,122859,122624,114911,114252,true,738,469,155,342]
#6
⏱️ 17.9 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[1434014,1432376,427384,310777,198441,160992,160991,135447,135446,135093,135069,135026,131626,131169,131028,130989,130973,129510,129437,126553,126225,126115,126111,125897,125598,124425,123118,122906,122859,122624,114911,114252,0,738,469,155,342]