#1
⏱️ 164.19 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"petah-tikva"]
#2
⏱️ 181.95 мс
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","baby_nutrition",18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391,true,18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391]
#3
⏱️ 107.34 мс
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","baby_nutrition",18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391,true,18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391]
#4
⏱️ 107.46 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4987857,4985731,4065908,3978527,2864871,2782677,1909949,1909474,1471390,1452530,1434556,1434552,1434104,1434074,1434073,1434072,1434071,1434070,1434069,1434068,1434067,1432364,1426959,1426958,1426161,1426160,1426148,1421753,1421752,1421751,1421750,1421749,true,18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391]
#5
⏱️ 11.8 мс
select * from "stores" where "stores"."id" in (104, 174, 190, 216, 224, 257, 276, 1145, 1211, 1239, 1246, 1262, 1306, 1328, 1334, 1354)
#6
⏱️ 23.87 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4987857,4985731,4065908,3978527,2864871,2782677,1909949,1909474,1471390,1452530,1434556,1434552,1434104,1434074,1434073,1434072,1434071,1434070,1434069,1434068,1434067,1432364,1426959,1426958,1426161,1426160,1426148,1421753,1421752,1421751,1421750,1421749,0,18,152,216,732,750,771,103,1145,1211,1239,1246,1262,1306,1328,1334,174,224,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,308,34,35,146,190,191,257,276,324,330,338,356,391]
#7
⏱️ 3.76 мс
select * from "stores" where "stores"."id" in (104, 174, 190, 191, 216, 224, 257, 276, 448, 484, 553, 575, 750, 771)
#8
⏱️ 10.67 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["petah-tikva"]
#9
⏱️ 9.23 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 9.48 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]