#1
⏱️ 217.44 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"givatayim"]
#2
⏱️ 1812.56 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["drinks",1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#3
⏱️ 1406.36 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."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",1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#4
⏱️ 189.14 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3046269,2925704,2782222,2674341,1546572,1476334,1468660,1465557,1465556,1462179,1462178,1460899,1456169,1454126,1452325,1451971,1451929,1451781,1439070,1435756,1434615,1434515,1433911,1433488,1433402,1433390,1433052,1433051,1432648,1432476,1429329,1429167,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#5
⏱️ 15.86 мс
select * from "stores" where "stores"."id" in (73, 212, 223, 226, 231)
#6
⏱️ 35.08 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3046269,2925704,2782222,2674341,1546572,1476334,1468660,1465557,1465556,1462179,1462178,1460899,1456169,1454126,1452325,1451971,1451929,1451781,1439070,1435756,1434615,1434515,1433911,1433488,1433402,1433390,1433052,1433051,1432648,1432476,1429329,1429167,0,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#7
⏱️ 10.62 мс
select * from "stores" where "stores"."id" in (16, 73, 212, 223, 226, 231, 431, 454, 493)
#8
⏱️ 7.6 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["givatayim"]
#9
⏱️ 10.61 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 13.82 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]