#1
⏱️ 48.49 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"kfar-saba"]
#2
⏱️ 372.57 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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","diapers_hygiene",740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#3
⏱️ 53.32 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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","diapers_hygiene",740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#4
⏱️ 24.42 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2634246,1562205,1562201,1525313,1515427,1498779,1494697,1490556,1488873,1476892,1476888,1474648,1472111,1472110,1436870,1436353,1434063,1434014,1432362,1429428,1429427,1429425,1427713,1426773,1421755,1421754,1421744,1421741,1421739,1421738,1421736,1421735,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#5
⏱️ 6.51 мс
select * from "stores" where "stores"."id" in (25, 141, 194, 222, 249, 254, 295, 302, 317, 329, 354, 368, 392, 1124, 1138, 1226, 1238)
#6
⏱️ 16.68 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2634246,1562205,1562201,1525313,1515427,1498779,1494697,1490556,1488873,1476892,1476888,1474648,1472111,1472110,1436870,1436353,1434063,1434014,1432362,1429428,1429427,1429425,1427713,1426773,1421755,1421754,1421744,1421741,1421739,1421738,1421736,1421735,0,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#7
⏱️ 3 мс
select * from "stores" where "stores"."id" in (25, 141, 194, 222, 249, 254, 295, 302, 317, 329, 354, 368, 392)
#8
⏱️ 4.42 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"kfar-saba"]
#9
⏱️ 69.6 мс
select store_id, count(*) as total from "deals" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and ("expires_at" is null or "expires_at" >= ?) group by "store_id"
Bindings:
[740,222,295,1124,1138,1226,1238,584,25,50,141,194,254,249,302,329,478,498,556,true,"2026-09-08T05:20:33.580333Z"]
#10
⏱️ 1.01 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["kfar-saba"]
#11
⏱️ 3.23 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 1.22 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]