#2
⏱️ 364.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:
["household",462,470,521,true,462,470,521]
#3
⏱️ 210.77 мс
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:
["household",462,470,521,true,462,470,521]
#4
⏱️ 7.81 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[3340041,1432357,788548,349271,277633,195704,194716,168944,158278,135645,135385,134797,133791,133408,133263,133051,133050,132807,132806,132233,131974,131170,130994,130823,130312,129839,129810,129410,128631,128582,128581,128310,true,462,470,521]
#6
⏱️ 11.24 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?)
Bindings:
[3340041,1432357,788548,349271,277633,195704,194716,168944,158278,135645,135385,134797,133791,133408,133263,133051,133050,132807,132806,132233,131974,131170,130994,130823,130312,129839,129810,129410,128631,128582,128581,128310,0,462,470,521]