#2
⏱️ 473.67 мс
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:
["dairy",599,121,197,242,353,501,true,599,121,197,242,353,501]
#3
⏱️ 205.25 мс
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:
["dairy",599,121,197,242,353,501,true,599,121,197,242,353,501]
#4
⏱️ 16.95 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[1454587,1452649,1420621,595069,190709,190700,190662,190557,190556,190555,190402,189739,189701,189698,189683,189682,189681,189680,187933,168764,168360,167744,163759,162224,158587,158187,154219,154217,154216,153872,153870,153869,true,599,121,197,242,353,501]
#6
⏱️ 24.48 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[1454587,1452649,1420621,595069,190709,190700,190662,190557,190556,190555,190402,189739,189701,189698,189683,189682,189681,189680,187933,168764,168360,167744,163759,162224,158587,158187,154219,154217,154216,153872,153870,153869,0,599,121,197,242,353,501]