#1
⏱️ 271.56 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 783.26 мс
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:
["appliances","kitchen_appliances",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#3
⏱️ 526.25 мс
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:
["appliances","kitchen_appliances",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#4
⏱️ 19.26 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 14.49 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 174.84 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4981873,4979747,4979741,4574975,4524307,4010322,2816262,2782222,2708626,2702790,2685471,2683782,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2657025,2641224,2638261,2636108,1433572,1427304,907294,207687,207685,199186,199076,198135,2676233,2657391,2702341,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 9.17 мс
select * from "stores" where "stores"."id" in (203)
#8
⏱️ 25.88 мс
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 2657025 WHEN sp.master_product_id = 2657391 THEN 2657025 WHEN sp.master_product_id = 2657025 THEN 2657025 WHEN sp.master_product_id = 2702341 THEN 2657025 ELSE sp.master_product_id END limit 500
Bindings:
[4981873,4979747,4979741,4574975,4524307,4010322,2816262,2782222,2708626,2702790,2685471,2683782,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2657025,2641224,2638261,2636108,1433572,1427304,907294,207687,207685,199186,199076,198135,2676233,2657391,2702341,0,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#9
⏱️ 59.88 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4295352,6273071,10480182,1970156,1969991,1958386,1966152,1967839,10481637,10469041,1964576,10475613,10467896,1969075,33128430,1969277,33122375,29352653,1970157,1969074,3476104,2854409,2855421,2855515,2852814,2852816,7853312,7862766,50731145,43270195,39903755,2982617,2983472,2983582,11653178,11653180,2953152,2954127,2954229,2951542,2951544,2945895,2700024,2700984,2701092,2820381,2820383,2814373,2700951,2763915,2764948,2765040,2762247,2762249,2756219,7697137]
#10
⏱️ 1.65 мс
select * from "stores" where "stores"."id" in (203, 209, 423, 543, 604, 609, 628, 712, 770)
#11
⏱️ 19.2 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#12
⏱️ 18.64 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 13.84 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]