#1
⏱️ 166.35 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"raanana"]
#2
⏱️ 1152.98 мс
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",1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#3
⏱️ 616.61 мс
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",1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#4
⏱️ 7.58 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 4.87 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 30.19 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4524453,4013398,4010322,4001201,3987313,3683486,3043797,2816262,2782222,2709647,2708626,2707089,2702790,2685471,2676233,2675929,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2641224,2638261,2636108,1493148,1433671,1426395,1347967,1345679,2657025,2657391,2702341,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#7
⏱️ 6.42 мс
select * from "stores" where "stores"."id" in (230)
#8
⏱️ 11.53 мс
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 = 2657025 THEN 2676233 WHEN sp.master_product_id = 2657391 THEN 2676233 WHEN sp.master_product_id = 2702341 THEN 2676233 ELSE sp.master_product_id END limit 500
Bindings:
[4524453,4013398,4010322,4001201,3987313,3683486,3043797,2816262,2782222,2709647,2708626,2707089,2702790,2685471,2676233,2675929,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2641224,2638261,2636108,1493148,1433671,1426395,1347967,1345679,2657025,2657391,2702341,0,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#9
⏱️ 19.51 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5899224,5903644,5906472,97565556,31411250,31421268,29927253,2386830,2390060,2386825,2386826,2384941,31421282,2386823,29927266,2390455,2386831,89391097,2390469,2386832,31421682,29927307,31413134,2384944,31421786,29929039,11482380,90947455,90960936,47952055,90960933,90947312,90960935,90959510,47958755,90947459,90947311,90960793,3430573,24575871,3441168,78023786,47959440,40141410,11602355]
#10
⏱️ 3.69 мс
select * from "stores" where "stores"."id" in (230, 460, 511, 585, 637)
#11
⏱️ 10.97 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["raanana"]
#12
⏱️ 10.22 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 10.76 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]