#1
⏱️ 207.9 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rehovot"]
#2
⏱️ 674.12 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["snacks",1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#3
⏱️ 809.11 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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:
["snacks",1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#4
⏱️ 28.38 мс
select * from "canonical_products" where "canonical_products"."id" in (224)
#5
⏱️ 2.69 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[224]
#6
⏱️ 72.48 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4984771,4017484,3711116,2563423,1433560,1227637,1197590,1197086,1118808,813764,810310,786009,784427,784425,784004,784002,749850,726749,696828,694023,694022,692746,367098,349948,337813,320326,303593,281755,281449,264936,264842,256724,1453483,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#7
⏱️ 12 мс
select * from "stores" where "stores"."id" in (20, 81, 134, 139, 173, 215, 335, 349, 371, 390)
#8
⏱️ 21.81 мс
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 = 3711116 THEN 3711116 WHEN sp.master_product_id = 1453483 THEN 3711116 ELSE sp.master_product_id END limit 500
Bindings:
[4984771,4017484,3711116,2563423,1433560,1227637,1197590,1197086,1118808,813764,810310,786009,784427,784425,784004,784002,749850,726749,696828,694023,694022,692746,367098,349948,337813,320326,303593,281755,281449,264936,264842,256724,1453483,0,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#9
⏱️ 50.89 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[6016458,6717281,4866002,4876134,5941106,5948774,5948966,5939105,5948620,5951052,5924696,5924526,5662767,5665317,5667981,5662611,5635087,5665531,4887473,4896106,4893446,4893450,4879503,4893455,4896098,6201340,4493189,4496220,735992,1125251,1126252,1125095,1119692,1125532,5299249,5292487,5299108,5299250,1213031,1213133,1210934,1211303,1214007,1207467,5999708,5999579,5999709,1350079,1350199,1347855,1348274,6101575,1349918,1343921,1350380,1344357,6067218,6086751,1344311,6079672,1347068,1347570,2319808,2325877,3511283,2808536,7785957,7788130,3149307,3001744,507855,2740904,3021050,2740167,2709637,2740842,2709424,216119]
#10
⏱️ 10.99 мс
select * from "stores" where "stores"."id" in (20, 81, 134, 139, 173, 215, 335, 349, 371, 390, 455, 550, 597, 620, 764, 768)
#11
⏱️ 1.75 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rehovot"]
#12
⏱️ 5.91 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 21.54 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]