#2
⏱️ 163.28 мс
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:
["drinks",200,true,200]
#3
⏱️ 89.86 мс
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:
["drinks",200,true,200]
#4
⏱️ 38.67 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?)
Bindings:
[1546572,1476334,1435756,1433911,1433488,1433402,1433390,1433052,1433051,1432648,1428041,1427098,1420356,1420349,182279,134253,131693,128133,127106,126621,112279,111386,108999,108998,108955,108954,108953,108494,101410,101409,101346,101342,true,200]
#6
⏱️ 10.95 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?)
Bindings:
[1546572,1476334,1435756,1433911,1433488,1433402,1433390,1433052,1433051,1432648,1428041,1427098,1420356,1420349,182279,134253,131693,128133,127106,126621,112279,111386,108999,108998,108955,108954,108953,108494,101410,101409,101346,101342,0,200]