#1
⏱️ 208.49 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netanya"]
#2
⏱️ 1653.95 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_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:
["appliances",1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#3
⏱️ 1468.18 мс
select * from "master_products" where "barcode" is not null and "category_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:
["appliances",1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#4
⏱️ 21.42 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 2.1 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 68 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,6706240,4574975,4524453,4524307,4013398,4010322,4001201,3585819,3362845,3043797,2816262,2782222,2770206,2709647,2708626,2707089,2702790,2685471,2683782,2676233,2675929,2671430,2670760,2670268,2657391,2657025,2702341,true,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#7
⏱️ 11.11 мс
select * from "stores" where "stores"."id" in (739)
#8
⏱️ 39.85 мс
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 = 2676233 THEN 2676233 WHEN sp.master_product_id = 2657391 THEN 2676233 WHEN sp.master_product_id = 2657025 THEN 2676233 WHEN sp.master_product_id = 2702341 THEN 2676233 ELSE sp.master_product_id END limit 500
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,6706240,4574975,4524453,4524307,4013398,4010322,4001201,3585819,3362845,3043797,2816262,2782222,2770206,2709647,2708626,2707089,2702790,2685471,2683782,2676233,2675929,2671430,2670760,2670268,2657391,2657025,2702341,0,1113,708,739,753,773,236,96,112,1326,1173,1224,1311,1315,407,59,64,428,438,451,476,499,500,1390,554,619,664,1395,36,105,95,144,205,219,229,256,267,325]
#9
⏱️ 68.32 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[10484852,15387441,33146491,10484579,10485284,10492273,10485194,1989612,1992138,1989937,33145398,10492266,1989723,31162556,2129234,2131567,2133874,10746189,10767537,2123834,29502333,2131353,10751670,10751533,10767527,2124377,33289273,67773348,29718041,29721948,11176743,11156795,2280443,31307501,2291522,31314832,2285857,2280057,29741142,31317835,47803172,37970244,78336002,24774855,78336437,3334266,3337352,4026472,4027633,4027676,4027719,4027762,4027934,4028020,4028063,1775586,32934116,29153781,29162665,10286294,32927986,29155175,29153710,1775585,1776576,29159523,29158389,2791459,7751157,2800374]
#10
⏱️ 5.77 мс
select * from "stores" where "stores"."id" in (428, 438, 451, 499, 500, 554, 708, 739, 753, 773)
#11
⏱️ 16.3 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netanya"]
#12
⏱️ 15.74 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 19.09 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]