#2
⏱️ 87.23 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["grocery","baking_spices",287,true,287]
#3
⏱️ 34.42 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["grocery","baking_spices",287,true,287]
#4
⏱️ 7.42 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?)
Bindings:
[1455995,256300,160363,132009,130832,114016,109958,106969,106442,106216,105142,105007,104473,104161,100941,100828,100826,100825,100586,100582,100581,100580,100577,100576,100574,100573,100572,100570,100569,100568,100567,100566,true,287]
#6
⏱️ 2.79 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?)
Bindings:
[1455995,256300,160363,132009,130832,114016,109958,106969,106442,106216,105142,105007,104473,104161,100941,100828,100826,100825,100586,100582,100581,100580,100577,100576,100574,100573,100572,100570,100569,100568,100567,100566,0,287]