#1
⏱️ 61.23 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netanya"]
#2
⏱️ 2029.14 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null 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:
[1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#3
⏱️ 2121.7 мс
select * from "master_products" where "barcode" is not null 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 96 offset 384
Bindings:
[1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#4
⏱️ 8.86 мс
select * from "canonical_products" where "canonical_products"."id" in (7, 8, 11, 12, 14, 28, 34, 35, 46, 61, 97, 117, 136, 138, 158, 172, 245, 280)
#5
⏱️ 5.4 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[14,117,97,136,7,28,11,12,245,34,8,46,61,280,138,35,172,158]
#6
⏱️ 269.74 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4043256,4041802,4039527,4039525,4033597,4029930,4028965,4025480,4025282,4024812,4023736,4022757,4017704,4017484,4016585,4013398,4012164,4010322,4009994,4009223,4008548,4006904,4006000,4005817,4004803,4004675,4004673,4000633,3997628,3995472,3991426,3988418,3986018,3985360,3985219,3982444,3980340,3979153,3978860,3977494,3973613,3973420,3972951,3972362,3971484,3970869,3970740,3941843,3916772,3915123,3779870,3745830,3713449,3698258,3691713,3677696,3673474,3619438,3549846,3411661,3340041,3328776,3235672,3234156,3230535,3225948,3170808,3141811,3123903,3119102,3084195,3065978,3052772,3043797,3041110,3015043,2990001,2989999,2986223,2975667,2974530,2950238,2931321,2925704,2922879,2902166,2868709,2864871,2842852,2822644,2822070,2816262,2812826,2812735,2812350,2799780,864799,406907,95617,199262,133465,109100,170223,1462716,160427,123050,809367,420472,95010,764101,337070,1945358,124804,2769595,101043,2901961,3675179,368474,374223,122806,95379,2742300,2629564,3261507,1907886,2639215,101044,322317,127029,154873,123105,122841,102185,102244,130085,94867,94974,97463,98565,101042,101339,2956794,1431276,3802561,190301,94956,112515,8506300,622184,190924,154941,95625,97843,95635,150763,109102,1993337,133482,199256,150773,95620,109467,133470,190929,4859763,4725190,191031,195116,2713394,7471575,4105945,9960259,4546323,149368,2663583,149284,134042,109335,95650,97351,107092,1915898,1455029,1986966,1907936,190894,2637094,133463,109313,98238,3481625,7513702,3482419,127014,1431157,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#7
⏱️ 8.5 мс
select * from "stores" where "stores"."id" in (36, 95, 96, 105, 112, 144, 325, 407, 739, 1113, 1173, 1224, 1311, 1315, 1326, 1390, 1395)
#8
⏱️ 146.93 мс
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 = 864799 THEN 3713449 WHEN sp.master_product_id = 3713449 THEN 3713449 WHEN sp.master_product_id = 406907 THEN 3713449 WHEN sp.master_product_id = 95617 THEN 3713449 WHEN sp.master_product_id = 199262 THEN 3713449 WHEN sp.master_product_id = 133465 THEN 3713449 WHEN sp.master_product_id = 109100 THEN 3713449 WHEN sp.master_product_id = 170223 THEN 3713449 WHEN sp.master_product_id = 3041110 THEN 2812826 WHEN sp.master_product_id = 3170808 THEN 2812826 WHEN sp.master_product_id = 2812826 THEN 2812826 WHEN sp.master_product_id = 1462716 THEN 2812826 WHEN sp.master_product_id = 160427 THEN 2812826 WHEN sp.master_product_id = 123050 THEN 2812826 WHEN sp.master_product_id = 809367 THEN 2950238 WHEN sp.master_product_id = 420472 THEN 2950238 WHEN sp.master_product_id = 3015043 THEN 2950238 WHEN sp.master_product_id = 95010 THEN 2950238 WHEN sp.master_product_id = 764101 THEN 2950238 WHEN sp.master_product_id = 3549846 THEN 2950238 WHEN sp.master_product_id = 337070 THEN 2950238 WHEN sp.master_product_id = 1945358 THEN 2950238 WHEN sp.master_product_id = 124804 THEN 2950238 WHEN sp.master_product_id = 2769595 THEN 2950238 WHEN sp.master_product_id = 101043 THEN 2950238 WHEN sp.master_product_id = 2901961 THEN 2950238 WHEN sp.master_product_id = 3675179 THEN 2950238 WHEN sp.master_product_id = 368474 THEN 2950238 WHEN sp.master_product_id = 374223 THEN 2950238 WHEN sp.master_product_id = 2950238 THEN 2950238 WHEN sp.master_product_id = 122806 THEN 2950238 WHEN sp.master_product_id = 95379 THEN 2950238 WHEN sp.master_product_id = 2742300 THEN 2950238 WHEN sp.master_product_id = 2629564 THEN 2950238 WHEN sp.master_product_id = 3261507 THEN 2950238 WHEN sp.master_product_id = 1907886 THEN 2950238 WHEN sp.master_product_id = 2639215 THEN 2950238 WHEN sp.master_product_id = 101044 THEN 2950238 WHEN sp.master_product_id = 322317 THEN 2950238 WHEN sp.master_product_id = 127029 THEN 2950238 WHEN sp.master_product_id = 154873 THEN 2950238 WHEN sp.master_product_id = 123105 THEN 2950238 WHEN sp.master_product_id = 122841 THEN 2950238 WHEN sp.master_product_id = 102185 THEN 2950238 WHEN sp.master_product_id = 102244 THEN 2950238 WHEN sp.master_product_id = 130085 THEN 2950238 WHEN sp.master_product_id = 94867 THEN 2950238 WHEN sp.master_product_id = 94974 THEN 2950238 WHEN sp.master_product_id = 97463 THEN 2950238 WHEN sp.master_product_id = 98565 THEN 2950238 WHEN sp.master_product_id = 101042 THEN 2950238 WHEN sp.master_product_id = 101339 THEN 2950238 WHEN sp.master_product_id = 2956794 THEN 3411661 WHEN sp.master_product_id = 3411661 THEN 3411661 WHEN sp.master_product_id = 1431276 THEN 4041802 WHEN sp.master_product_id = 3802561 THEN 4041802 WHEN sp.master_product_id = 4041802 THEN 4041802 WHEN sp.master_product_id = 190301 THEN 4041802 WHEN sp.master_product_id = 94956 THEN 4041802 WHEN sp.master_product_id = 112515 THEN 4041802 WHEN sp.master_product_id = 3619438 THEN 3619438 WHEN sp.master_product_id = 8506300 THEN 3619438 WHEN sp.master_product_id = 622184 THEN 3619438 WHEN sp.master_product_id = 190924 THEN 3619438 WHEN sp.master_product_id = 154941 THEN 3619438 WHEN sp.master_product_id = 95625 THEN 3619438 WHEN sp.master_product_id = 97843 THEN 3619438 WHEN sp.master_product_id = 3225948 THEN 3225948 WHEN sp.master_product_id = 95635 THEN 3225948 WHEN sp.master_product_id = 150763 THEN 3225948 WHEN sp.master_product_id = 109102 THEN 3225948 WHEN sp.master_product_id = 1993337 THEN 3225948 WHEN sp.master_product_id = 133482 THEN 3225948 WHEN sp.master_product_id = 199256 THEN 3225948 WHEN sp.master_product_id = 2922879 THEN 2922879 WHEN sp.master_product_id = 150773 THEN 2922879 WHEN sp.master_product_id = 95620 THEN 2922879 WHEN sp.master_product_id = 109467 THEN 2922879 WHEN sp.master_product_id = 133470 THEN 2922879 WHEN sp.master_product_id = 190929 THEN 2922879 WHEN sp.master_product_id = 4859763 THEN 3119102 WHEN sp.master_product_id = 4725190 THEN 3119102 WHEN sp.master_product_id = 191031 THEN 3119102 WHEN sp.master_product_id = 3119102 THEN 3119102 WHEN sp.master_product_id = 195116 THEN 3119102 WHEN sp.master_product_id = 2713394 THEN 3084195 WHEN sp.master_product_id = 3084195 THEN 3084195 WHEN sp.master_product_id = 7471575 THEN 3084195 WHEN sp.master_product_id = 4004675 THEN 4004675 WHEN sp.master_product_id = 4105945 THEN 4004675 WHEN sp.master_product_id = 9960259 THEN 4016585 WHEN sp.master_product_id = 4546323 THEN 4016585 WHEN sp.master_product_id = 4016585 THEN 4016585 WHEN sp.master_product_id = 149368 THEN 4016585 WHEN sp.master_product_id = 2663583 THEN 4016585 WHEN sp.master_product_id = 3971484 THEN 3971484 WHEN sp.master_product_id = 149284 THEN 3971484 WHEN sp.master_product_id = 134042 THEN 3971484 WHEN sp.master_product_id = 109335 THEN 3971484 WHEN sp.master_product_id = 95650 THEN 2986223 WHEN sp.master_product_id = 97351 THEN 2986223 WHEN sp.master_product_id = 2986223 THEN 2986223 WHEN sp.master_product_id = 107092 THEN 2986223 WHEN sp.master_product_id = 1915898 THEN 2986223 WHEN sp.master_product_id = 1455029 THEN 2986223 WHEN sp.master_product_id = 1986966 THEN 2986223 WHEN sp.master_product_id = 1907936 THEN 2986223 WHEN sp.master_product_id = 190894 THEN 2986223 WHEN sp.master_product_id = 2637094 THEN 2986223 WHEN sp.master_product_id = 133463 THEN 2986223 WHEN sp.master_product_id = 109313 THEN 2986223 WHEN sp.master_product_id = 98238 THEN 2986223 WHEN sp.master_product_id = 3481625 THEN 2868709 WHEN sp.master_product_id = 2868709 THEN 2868709 WHEN sp.master_product_id = 7513702 THEN 2902166 WHEN sp.master_product_id = 2902166 THEN 2902166 WHEN sp.master_product_id = 3482419 THEN 2902166 WHEN sp.master_product_id = 3234156 THEN 3234156 WHEN sp.master_product_id = 127014 THEN 3234156 WHEN sp.master_product_id = 3052772 THEN 3052772 WHEN sp.master_product_id = 1431157 THEN 3052772 ELSE sp.master_product_id END limit 500
Bindings:
[4043256,4041802,4039527,4039525,4033597,4029930,4028965,4025480,4025282,4024812,4023736,4022757,4017704,4017484,4016585,4013398,4012164,4010322,4009994,4009223,4008548,4006904,4006000,4005817,4004803,4004675,4004673,4000633,3997628,3995472,3991426,3988418,3986018,3985360,3985219,3982444,3980340,3979153,3978860,3977494,3973613,3973420,3972951,3972362,3971484,3970869,3970740,3941843,3916772,3915123,3779870,3745830,3713449,3698258,3691713,3677696,3673474,3619438,3549846,3411661,3340041,3328776,3235672,3234156,3230535,3225948,3170808,3141811,3123903,3119102,3084195,3065978,3052772,3043797,3041110,3015043,2990001,2989999,2986223,2975667,2974530,2950238,2931321,2925704,2922879,2902166,2868709,2864871,2842852,2822644,2822070,2816262,2812826,2812735,2812350,2799780,864799,406907,95617,199262,133465,109100,170223,1462716,160427,123050,809367,420472,95010,764101,337070,1945358,124804,2769595,101043,2901961,3675179,368474,374223,122806,95379,2742300,2629564,3261507,1907886,2639215,101044,322317,127029,154873,123105,122841,102185,102244,130085,94867,94974,97463,98565,101042,101339,2956794,1431276,3802561,190301,94956,112515,8506300,622184,190924,154941,95625,97843,95635,150763,109102,1993337,133482,199256,150773,95620,109467,133470,190929,4859763,4725190,191031,195116,2713394,7471575,4105945,9960259,4546323,149368,2663583,149284,134042,109335,95650,97351,107092,1915898,1455029,1986966,1907936,190894,2637094,133463,109313,98238,3481625,7513702,3482419,127014,1431157,0,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#9
⏱️ 64.07 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5462422,5459875,5462453,5462438,5462427,5462419,5482129,6331132,6330108,6331163,6331148,6331137,6331129,6339427,4508986,4505720,4509017,4509001,4508991,4508983,4535113,4648830,4645564,4648872,4648844,4648835,4648827,4681563,6531129,6531170,6526414,6526407,541088,540517,541119,541103,541093,541085,545591,576599,576030,576628,576613,576604,576596,580912,4729497,4729191,4729522,4729509,4735752,4729494,4744504,1475941,1475138,1475981,1475957,1475946,1475938,1481492,1986843,1984327,1985320,1996124,1987701,1990522,1989723,1986938,1992696,1998401,1994982,1986289,1989177,1989789,1990189,1996175,1998015,1990309,2124576,2136501,2134442,2137335,2134435,2124377,2135254,2134457,2126839,2128218,2134437,2135248,2127500,2280419,2283720,2286763,2285362,2286755,2280018,2286795,2281684,2280855,2287894,2286757,2287652,2503798,2503392,2503385,2503473,2503490,2501043,2503403,2504201,2503387,2502011,2586019,2586012,2586603,2586030,2585449,2586014,2584565,2588717,2592768,2593541,2593534,2594089,2593624,2593551,2590688,2593536,2593620,2592388,2595037,2596083,3564062,3561330,3564279,3561320,3562121,3566910,3561111,3561444,3563873,3564018,3561443,3563097,2986337,2985480,2986292,2986378,2995039,2986331,2986486,2985638,2991628,2996497,2985639,2985624,3332984,3333922,3329328,3333097,3334306,3329318,3331090,3339017,3802471,3328902,3329317,3796509,3796982,3329920,3332623,3333881,3803033,3805007,3807080,3338440,3807720,3329511,3330648,3801105,3802845,3805414,3328611,3328613,3328741,3329757,3329939,3330839,3332489,3333167,3333936,3334266,3336113,3337352,3328712,3796619,3796759,3800472,3801280,3801999,3334187,3802383,3805409,3806037,3795548,3798200,3798202,3800846,3882852,3826565,3879670,3874037,3828285,3873951,3880229,3949545,1765593,1776467,1765107,1776576,1775009,1775583,1773769,1773762,1769891,1773780,1767657,1773764,1773862,7749050,2791527,3147995,2795852,2791473,3144034,3144035,7759755,2800670,2791514,3141609,3142859,2791732,3145790,7761123,7771991,3141063,2790765]
#10
⏱️ 18.03 мс
select * from "stores" where "stores"."id" in (36, 95, 96, 105, 112, 144, 219, 325, 407, 428, 438, 451, 476, 499, 500, 554, 619, 708, 739, 753, 773)
#11
⏱️ 6.99 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netanya"]
#12
⏱️ 6.4 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 20.31 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]