#1
⏱️ 127.33 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#2
⏱️ 1023.04 мс
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",730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#3
⏱️ 852.75 мс
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",730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#4
⏱️ 13.27 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 6.93 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 25.86 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,3276113,3043797,2816262,2782222,2709647,2708626,2707089,2702790,2685471,2683782,2676233,2675929,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2662434,2661254,2657025,2641224,2638261,2657391,2702341,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#7
⏱️ 8.61 мс
select * from "stores" where "stores"."id" in (730)
#8
⏱️ 12.69 мс
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,3276113,3043797,2816262,2782222,2709647,2708626,2707089,2702790,2685471,2683782,2676233,2675929,2671430,2670760,2670268,2664339,2663976,2662602,2662458,2662434,2661254,2657025,2641224,2638261,2657391,2702341,0,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#9
⏱️ 22.54 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2055683,10581418,2043472,2048351,2048025,2052365,77675047,2054942,10594356,29423249,2053637,10594308,2042404,2056654,29426808,33195378,2045942,2055685,10594307,33192954,29426779,2511383,31651908,2511381,2511384,2511385,2511382,2511380,2602840,78679638,2603080,4026463,4027624,4027667,4027710,4027753,4027925,4028011,4028054,6754306,6745723,1710160,1701251,6759582,6759606,6759748,6745513,6755223,6756566,6758293,32857791,32867163,1710255,29090982,29083317,29085123,1700620]
#10
⏱️ 6.24 мс
select * from "stores" where "stores"."id" in (432, 477, 502, 730, 748)
#11
⏱️ 9.23 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bnei-brak"]
#12
⏱️ 8.18 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 13.16 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]