#1
⏱️ 148.95 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"krayot"]
#2
⏱️ 923.88 мс
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:
["grocery",735,1188,1293,290,99,154,430,506,660,1397,true,735,1188,1293,290,99,154,430,506,660,1397]
#3
⏱️ 775.7 мс
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:
["grocery",735,1188,1293,290,99,154,430,506,660,1397,true,735,1188,1293,290,99,154,430,506,660,1397]
#4
⏱️ 12.06 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4533815,4531886,2742043,2683719,2669776,2667577,2662458,2638261,2637582,2634027,2632389,2390497,2049531,2045396,1919767,1918295,1911874,1910510,1910173,1910051,1909827,1909366,1477277,1461266,1458241,1458209,1457784,1457763,1457566,1457401,1456789,1456787,true,735,1188,1293,290,99,154,430,506,660,1397]
#5
⏱️ 6.28 мс
select * from "stores" where "stores"."id" in (99, 290, 1188, 1293, 1397)
#6
⏱️ 12.95 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4533815,4531886,2742043,2683719,2669776,2667577,2662458,2638261,2637582,2634027,2632389,2390497,2049531,2045396,1919767,1918295,1911874,1910510,1910173,1910051,1909827,1909366,1477277,1461266,1458241,1458209,1457784,1457763,1457566,1457401,1456789,1456787,0,735,1188,1293,290,99,154,430,506,660,1397]
#7
⏱️ 3.98 мс
select * from "stores" where "stores"."id" in (99, 290, 430, 506)
#8
⏱️ 5.67 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["krayot"]
#9
⏱️ 3.71 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 11.37 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]