#1
⏱️ 155.63 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bat-yam"]
#2
⏱️ 1452.08 мс
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:
["grocery","baking_spices",751,1121,1250,1260,618,459,676,675,677,124,232,318,409,true,751,1121,1250,1260,618,459,676,675,677,124,232,318,409]
#3
⏱️ 705.65 мс
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:
["grocery","baking_spices",751,1121,1250,1260,618,459,676,675,677,124,232,318,409,true,751,1121,1250,1260,618,459,676,675,677,124,232,318,409]
#4
⏱️ 10.89 мс
select * from "canonical_products" where "canonical_products"."id" in (283, 286)
#5
⏱️ 11.8 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[283,286]
#6
⏱️ 25.14 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4990576,4990374,4988227,4987429,4546334,4546313,4546301,4546279,4546274,4546265,4546263,4546262,3458976,2842852,2702452,2680174,2670979,2666098,2666027,2663549,2640775,2640774,2608194,1474523,1472108,1472107,1469150,1455751,1455745,1455741,1451847,1433604,2680729,149430,true,751,1121,1250,1260,618,459,676,675,677,124,232,318,409]
#7
⏱️ 7.87 мс
select * from "stores" where "stores"."id" in (124, 232)
#8
⏱️ 18.76 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 4546313 THEN 4546313 WHEN sp.master_product_id = 2680729 THEN 4546313 WHEN sp.master_product_id = 4546301 THEN 4546301 WHEN sp.master_product_id = 149430 THEN 4546301 ELSE sp.master_product_id END limit 500
Bindings:
[4990576,4990374,4988227,4987429,4546334,4546313,4546301,4546279,4546274,4546265,4546263,4546262,3458976,2842852,2702452,2680174,2670979,2666098,2666027,2663549,2640775,2640774,2608194,1474523,1472108,1472107,1469150,1455751,1455745,1455741,1451847,1433604,2680729,149430,0,751,1121,1250,1260,618,459,676,675,677,124,232,318,409]
#9
⏱️ 28.51 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5845944,5845945,5861712,68143317,33521288,33534441,29896402,2366786,2366795,2378548,2378564,2378588,33532815,2367273,2378644,2378581,3230259,3227987,11465611,11465612,11465614,11465623,11465628,11465650,11465662,11465684,3227071,3227869,3230016,3230218,6795351,6795355,1743211,1749552,1746199,1746202,6792297,6795173,29136788,29136052,6791392,1750778,6800231]
#10
⏱️ 11.55 мс
select * from "stores" where "stores"."id" in (232, 459, 618, 751)
#11
⏱️ 4.85 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"bat-yam"]
#12
⏱️ 153.13 мс
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:
[751,1121,1250,1260,618,459,676,675,677,124,232,true,"2026-10-22T21:18:22.246511Z"]
#13
⏱️ 10.34 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bat-yam"]
#14
⏱️ 15.55 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 12.76 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]