#1
⏱️ 87.83 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"herzliya"]
#2
⏱️ 677.81 мс
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:
["baby",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#3
⏱️ 396.91 мс
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:
["baby",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#4
⏱️ 87.67 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775937,8775934,4987857,4985731,4126423,4078051,4067534,4065908,4033597,4023305,3978527,2864871,2634246,1831540,1690015,1515428,1515427,1509619,1506060,1493149,1490556,1490550,1488900,1477016,1476888,1476886,1474652,1474648,1472111,1471390,1438359,1436870,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#5
⏱️ 3.83 мс
select * from "stores" where "stores"."id" in (198, 542, 714, 1141, 1157, 1194, 1219, 1223, 1343, 1380)
#6
⏱️ 10.43 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775937,8775934,4987857,4985731,4126423,4078051,4067534,4065908,4033597,4023305,3978527,2864871,2634246,1831540,1690015,1515428,1515427,1509619,1506060,1493149,1490556,1490550,1488900,1477016,1476888,1476886,1474652,1474648,1472111,1471390,1438359,1436870,0,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#7
⏱️ 2.91 мс
select * from "stores" where "stores"."id" in (198, 542, 560, 626)
#8
⏱️ 8.27 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["herzliya"]
#9
⏱️ 10.96 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 12.93 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]