#2
⏱️ 433.55 мс
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",738,469,155,342,true,738,469,155,342]
#3
⏱️ 324.91 мс
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",738,469,155,342,true,738,469,155,342]
#4
⏱️ 20.42 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[3340041,1432357,1428342,1428311,994293,788548,788257,750013,689448,684972,680650,531939,498599,398488,349271,277633,251429,245837,245810,244557,244556,244555,244553,244509,244505,242979,242978,211624,195477,190041,174728,169433,true,738,469,155,342]
#6
⏱️ 13.75 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[3340041,1432357,1428342,1428311,994293,788548,788257,750013,689448,684972,680650,531939,498599,398488,349271,277633,251429,245837,245810,244557,244556,244555,244553,244509,244505,242979,242978,211624,195477,190041,174728,169433,0,738,469,155,342]