#2
⏱️ 235.85 мс
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:
["meat",445,623,true,445,623]
#3
⏱️ 140.07 мс
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:
["meat",445,623,true,445,623]
#4
⏱️ 16.69 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[200566,190928,190599,190598,190596,190595,190592,190591,190590,190589,190588,190587,189923,189919,189916,189800,189798,189797,189796,189794,189793,189792,189789,189788,189786,184062,166433,164707,163807,163802,133954,128587,true,445,623]
#5
⏱️ 29.22 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[200566,190928,190599,190598,190596,190595,190592,190591,190590,190589,190588,190587,189923,189919,189916,189800,189798,189797,189796,189794,189793,189792,189789,189788,189786,184062,166433,164707,163807,163802,133954,128587,0,445,623]