#1
⏱️ 101.67 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"haifa"]
#2
⏱️ 1704.73 мс
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:
["dairy",13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331,true,13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331]
#3
⏱️ 779.68 мс
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:
["dairy",13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331,true,13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331]
#4
⏱️ 8.01 мс
select * from "canonical_products" where "canonical_products"."id" in (155, 199)
#5
⏱️ 6.84 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[155,199]
#6
⏱️ 972.88 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[125101687,62358111,36601256,32387955,24338782,12852012,12201255,11135534,8322706,8314244,8314242,7547124,7443254,6778985,5305199,4990849,4424496,4415681,4371453,4311709,4286085,4279811,4242981,4213380,4106826,4106825,4105860,4085256,4072560,4060930,4053310,4053285,4157788,4019922,true,13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331]
#7
⏱️ 16.1 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 15, 28, 72, 74, 102, 137, 309, 366, 701, 734)
#8
⏱️ 39.11 мс
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 = 4286085 THEN 4286085 WHEN sp.master_product_id = 4157788 THEN 4286085 WHEN sp.master_product_id = 4085256 THEN 4085256 WHEN sp.master_product_id = 4019922 THEN 4085256 ELSE sp.master_product_id END limit 500
Bindings:
[125101687,62358111,36601256,32387955,24338782,12852012,12201255,11135534,8322706,8314244,8314242,7547124,7443254,6778985,5305199,4990849,4424496,4415681,4371453,4311709,4286085,4279811,4242981,4213380,4106826,4106825,4105860,4085256,4072560,4060930,4053310,4053285,4157788,4019922,0,13,1111,707,202,716,734,721,102,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,8,49,52,57,61,62,67,72,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,15,28,701,74,89,137,211,233,319,331]
#9
⏱️ 64.98 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[15052686,36567971,21330516,27516416,21301223,15001715,17220703,14926249,26869031,100112562,36360796,12961207,10455100,88733755,29455478,10633475,31094659,31096733,18514015,11780123,44950697,56488632,31581303,30155574,41989718,35708190,11952301,50235210,2492314,98310015,78419178,78397773,59819044,3577838,78393149,110750549,3577732,24811944,59798493,37711191,110788430,24811004,37717202,59798492,59798495,24809798,59826490,59823081,98308556,78864938,25069923,25067649,3409094,25055666,106045342,101367680,24462147,111538279,25068823,10819098,111557183,24462146,24462149,77942508,77949562,111557852,111559491,17035137,17220435,3793268,3793291,3790863,98690101,111475228,111477692,7374968,74813120,3782220,3792106,7399999,7400948,105864161,24283458,7374970,17822658,24313542,24308671,22252434,87534442,9570258]
#10
⏱️ 12.61 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 15, 28, 102, 137, 366, 422, 434, 468, 472, 474, 558, 583, 701, 707, 734)
#11
⏱️ 13.44 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["haifa"]
#12
⏱️ 8.43 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 19.38 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]