#1
⏱️ 295.42 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"kfar-saba"]
#2
⏱️ 605.31 мс
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
⏱️ 267.95 мс
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
⏱️ 81.54 мс
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
⏱️ 20.77 мс
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
⏱️ 53.53 мс
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
⏱️ 21.17 мс
select * from "stores" where "stores"."id" in (25, 141, 194, 222, 249, 254, 295, 302, 317, 329, 354, 368, 392)
#8
⏱️ 13.2 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["kfar-saba"]
#9
⏱️ 9.73 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 13.88 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]