#1
⏱️ 120.78 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rishon-le-zion"]
#2
⏱️ 965.83 мс
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",3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#3
⏱️ 312.46 мс
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",3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#4
⏱️ 12.42 мс
select * from "canonical_products" where "canonical_products"."id" in (145)
#5
⏱️ 10.41 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[145]
#6
⏱️ 63.11 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4991027,4213380,4072452,2608194,1472107,1455995,1434643,1433604,1432364,1419976,1419974,715776,685427,364789,262280,256300,248808,211768,195457,194752,192327,189702,182689,182511,168014,166399,161333,160615,160363,160268,158725,158192,192386,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#7
⏱️ 11.32 мс
select * from "stores" where "stores"."id" in (3, 92, 116, 126, 129, 150, 175, 196, 238, 299, 321, 343, 365, 399, 731, 1142, 1160, 1230, 1232, 1261, 1280, 1305, 1312, 1321, 1349, 1352, 1384)
#8
⏱️ 33.21 мс
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 = 192386 THEN 192327 WHEN sp.master_product_id = 192327 THEN 192327 ELSE sp.master_product_id END limit 500
Bindings:
[4991027,4213380,4072452,2608194,1472107,1455995,1434643,1433604,1432364,1419976,1419974,715776,685427,364789,262280,256300,248808,211768,195457,194752,192327,189702,182689,182511,168014,166399,161333,160615,160363,160268,158725,158192,192386,0,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#9
⏱️ 71.45 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[6386571,4828126,6511665,6230205,6233144,6244340,6234382,6231499,6230144,6233142,6162213,6174478,6163894,4942420,4945452,4945589,4942379,4934455,4934458,4439128,4432434,4432435,4436360,5689868,5706577,5710507,991460,991992,992128,991419,4815343,4829017,703309,742044,5403467,745415,5403682,742008,6104869,1416500,1417371,1420901,5995464,1416761,1417348,1416445,5995160,5995198,1900886,1900997,1906112,1908145,2354288,2345973,2355028,2353691,3488183,3488526,3489633,3489864,3493743,3494831,3490847,3697660,3699839,3700400,3454775,3455571,3459330,2839271,2839799,2833639,2836667,2839186,2839937,3171558,7819875,3178028,2907828,2908355,2902392,2905317,2907758,2908486,2913813,3216652,2912991,2910842,3223122,1715313,6764718,1720475,1712606,1712283,6769748,3115341,7636357,2746286,2748428,7634861,2754772,3111489,2754188,3117959]
#10
⏱️ 7.85 мс
select * from "stores" where "stores"."id" in (3, 92, 116, 126, 129, 150, 175, 196, 238, 299, 321, 343, 365, 399, 427, 457, 547, 578, 586, 600, 617, 749, 769)
#11
⏱️ 11.4 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"rishon-le-zion"]
#12
⏱️ 108.33 мс
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:
[3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,"2026-09-08T05:45:42.188835Z"]
#13
⏱️ 6.49 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rishon-le-zion"]
#14
⏱️ 7.97 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 8.95 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]