#1
⏱️ 32.6 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"tel-aviv"]
#2
⏱️ 548.66 мс
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:
["dairy","cheese",729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370,true,729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370]
#3
⏱️ 365.93 мс
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:
["dairy","cheese",729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370,true,729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370]
#4
⏱️ 2.59 мс
select * from "canonical_products" where "canonical_products"."id" in (155, 199)
#5
⏱️ 1.28 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[155,199]
#6
⏱️ 138.51 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[55322118,36601256,11135534,8314242,4990037,4988786,4987083,4986561,4985410,4286085,4279811,4213380,4157788,4125470,4105860,4085256,4033418,4032127,4019922,4008548,4003338,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,true,729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370]
#7
⏱️ 1.79 мс
select * from "stores" where "stores"."id" in (19, 117, 138, 310, 322, 336, 337, 341, 361, 362)
#8
⏱️ 27.27 мс
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 4157788 WHEN sp.master_product_id = 4157788 THEN 4157788 WHEN sp.master_product_id = 4085256 THEN 4019922 WHEN sp.master_product_id = 4019922 THEN 4019922 ELSE sp.master_product_id END limit 500
Bindings:
[55322118,36601256,11135534,8314242,4990037,4988786,4987083,4986561,4985410,4286085,4279811,4213380,4157788,4125470,4105860,4085256,4033418,4032127,4019922,4008548,4003338,3987697,3985099,3974567,2802677,2679096,2668917,2668915,2633414,2611955,2611893,2611880,0,729,747,757,758,772,774,189,117,260,1129,1131,1132,1139,1147,1151,1155,1177,1209,1217,1236,1240,1243,1245,1251,587,1277,1285,1289,610,1296,627,1303,1316,1320,1330,1342,42,43,48,51,55,63,65,68,70,291,341,425,433,440,444,449,456,466,491,495,496,507,512,513,514,515,516,527,1353,1355,1359,551,561,562,563,564,565,566,568,569,570,571,572,574,576,577,581,582,649,674,680,1377,1382,1405,1412,19,27,31,97,138,176,178,185,192,193,201,204,207,210,251,244,245,266,277,294,297,307,310,311,313,322,327,328,336,337,357,359,361,362,370]
#9
⏱️ 67.29 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[26354347,35396946,35133806,36360868,36360833,36360832,36360942,36360812,67540298,1875800,1884141,1876428,29260308,1883329,10398168,10388791,2070721,2061606,2070722,2070715,2070717,2066375,10822018,2162414,10802240,2207609,2198432,2207610,31224626,2207605,31231606,2265833,2257152,2265834,11082798,2265826,2265829,2264654,11104543,11363167,11337074,11363168,2343005,11363160,11363163,2334296,31489424,31489426,31489427,2454409,31489418,2460661,2460558,47685741,78227555,3525692,24739777,24739880,3534052,24729988,78248352,59875876,59868493,3594416,59877131,59901356,59911067,59929053,59915692,24823140,24823032,59912082,59912081,59939654,59940012,59968028,59968199,3604476,24833847,78456160,78456052,3603392,59941511,59982417,59982443,60017722,59975050,24839714,59972730,3609656,3609631,59984402,60032768,60032788,60034743,60034742,24850007,60088105,24848924,60142875,60176791,60178172,60134825,60178171,43131356,60145258,60145257,58126920,37837584,58150523,60211695,60204696,60228275,60228307,60250999,60229962,60251143,60249671,60263376,60297266,11602945,78564779,60265959,60265958,3672699,60386596,60388015,60345074,60388014,60384944,24917180,78630680,60427391,3684304,60435315,60435314,60510920,3694710,60466735,78656369,24947176,3719558,60570978,60570871,11796716,24948733,78721026,60608194,24947679,24610502,24640556,26819219,24641196,3460444,78083254,24612358,3193536,3197220,3197215,2869040,3194996,3196147,3196669,3198372,3199623,28595536,3238587,3242271,3242266,11501285,3240047,3241198,3241720,3243423,3244674,1690516,1696479,1690517,1690476,1690364,1690368,1692955,3133337,3137021,3137016,7731170,2779879,3134797,3135948,3136470,3138173,3139424]
#10
⏱️ 2.89 мс
select * from "stores" where "stores"."id" in (19, 117, 138, 322, 336, 337, 341, 362, 425, 433, 440, 444, 449, 456, 466, 491, 551, 561, 562, 563, 564, 565, 566, 568, 569, 570, 571, 572, 574, 576, 577, 581, 582, 587, 610, 627, 747, 772)
#11
⏱️ 1.94 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["tel-aviv"]
#12
⏱️ 4.71 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 3.32 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]