#1
⏱️ 153.16 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 1143.78 мс
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",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
⏱️ 580.49 мс
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",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
⏱️ 10.26 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 7.15 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 128.5 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4981873,4979747,4979741,4574975,4524453,4524307,4010322,3987313,2816262,2782222,2709647,2708626,2702790,2685471,2683782,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2657025,2676233,2657391,2702341,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 9.54 мс
select * from "stores" where "stores"."id" in (540, 733)
#8
⏱️ 37.87 мс
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:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4981873,4979747,4979741,4574975,4524453,4524307,4010322,3987313,2816262,2782222,2709647,2708626,2702790,2685471,2683782,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2661254,2657025,2676233,2657391,2702341,0,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#9
⏱️ 25.93 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1958386,1966152,1967839,10481637,10469041,1964576,10475613,10467896,1969075,33128430,1969277,33122375,29352653,67621544,1970157,1969074,4026498,4027659,4027702,4027745,4027788,4027960,4028046,4028089,24646791,3476104,83498711,7862766,50731145,43270195,39903755,11637292,2945895,2814373,2692981,2700951,4026466,4027627,4027670,4027713,4027756,4027928,4028014,4028057,2756219,7678123,7697137]
#10
⏱️ 6.25 мс
select * from "stores" where "stores"."id" in (423, 540, 543, 604, 609, 628, 712, 733, 770)
#11
⏱️ 10.91 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#12
⏱️ 12.64 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 13.81 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]