#6
⏱️ 41.41 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[8506300,8338309,5280320,4493674,4492500,4463695,4463500,4463398,4451296,4447166,4424403,4421543,4415637,4415300,4407842,4405567,4402031,4395765,4377691,4371280,4352379,4344609,4324769,4311709,4302537,4279303,4259731,4259327,4234035,4228681,4226326,4226263,4223552,4213899,4213727,4210061,4210059,4209858,4208492,4193606,4191170,4181002,4179499,4179442,4178083,4175300,4174704,4173605,4172615,4165706,4165056,4160745,4159960,4158159,4144684,4126286,4122596,4121710,4118979,4118978,4118966,4117404,4116844,4116623,4115995,4110824,4110791,4109280,4107318,4101153,4099827,4098748,4096522,4096518,4096508,4096506,4095651,4094723,4093867,4089325,4085256,4085054,4083914,4080687,4079555,4078589,4077839,4077655,4073788,4073673,4073345,4073344,4073343,4072452,4072451,4068252,1453310,156666,2984317,1465364,162808,1453360,112864,160598,3619438,622184,190924,154941,95625,97843,133515,162165,110740,4148882,162154,3253825,2261290,4041677,154967,162805,124682,2676452,378375,162150,1907879,133491,199419,109305,150738,192306,192305,1453237,2928563,196438,2603553,179969,166089,192304,109336,158027,195156,2045916,157118,157278,155793,166942,3569061,112144,155798,4681547,4019922,364245,155608,150735,190883,96304,109535,true,542,560]
#8
⏱️ 48.61 мс
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 = 1453310 THEN 4118966 WHEN sp.master_product_id = 156666 THEN 4118966 WHEN sp.master_product_id = 2984317 THEN 4118966 WHEN sp.master_product_id = 1465364 THEN 4118966 WHEN sp.master_product_id = 162808 THEN 4118966 WHEN sp.master_product_id = 4118966 THEN 4118966 WHEN sp.master_product_id = 1453360 THEN 4118966 WHEN sp.master_product_id = 112864 THEN 4118966 WHEN sp.master_product_id = 160598 THEN 4118966 WHEN sp.master_product_id = 3619438 THEN 8506300 WHEN sp.master_product_id = 8506300 THEN 8506300 WHEN sp.master_product_id = 622184 THEN 8506300 WHEN sp.master_product_id = 190924 THEN 8506300 WHEN sp.master_product_id = 154941 THEN 8506300 WHEN sp.master_product_id = 95625 THEN 8506300 WHEN sp.master_product_id = 97843 THEN 8506300 WHEN sp.master_product_id = 133515 THEN 4324769 WHEN sp.master_product_id = 4324769 THEN 4324769 WHEN sp.master_product_id = 162165 THEN 4324769 WHEN sp.master_product_id = 110740 THEN 4324769 WHEN sp.master_product_id = 4148882 THEN 4415637 WHEN sp.master_product_id = 162154 THEN 4415637 WHEN sp.master_product_id = 3253825 THEN 4415637 WHEN sp.master_product_id = 2261290 THEN 4415637 WHEN sp.master_product_id = 4041677 THEN 4415637 WHEN sp.master_product_id = 4415637 THEN 4415637 WHEN sp.master_product_id = 154967 THEN 4415637 WHEN sp.master_product_id = 162805 THEN 4415637 WHEN sp.master_product_id = 4463398 THEN 4463398 WHEN sp.master_product_id = 124682 THEN 4463398 WHEN sp.master_product_id = 2676452 THEN 4463398 WHEN sp.master_product_id = 378375 THEN 4179499 WHEN sp.master_product_id = 4179499 THEN 4179499 WHEN sp.master_product_id = 162150 THEN 4179499 WHEN sp.master_product_id = 4172615 THEN 4172615 WHEN sp.master_product_id = 1907879 THEN 4172615 WHEN sp.master_product_id = 133491 THEN 4172615 WHEN sp.master_product_id = 199419 THEN 4172615 WHEN sp.master_product_id = 109305 THEN 4172615 WHEN sp.master_product_id = 150738 THEN 4172615 WHEN sp.master_product_id = 192306 THEN 4424403 WHEN sp.master_product_id = 192305 THEN 4424403 WHEN sp.master_product_id = 1453237 THEN 4424403 WHEN sp.master_product_id = 2928563 THEN 4424403 WHEN sp.master_product_id = 196438 THEN 4424403 WHEN sp.master_product_id = 4424403 THEN 4424403 WHEN sp.master_product_id = 2603553 THEN 4424403 WHEN sp.master_product_id = 179969 THEN 4424403 WHEN sp.master_product_id = 166089 THEN 4424403 WHEN sp.master_product_id = 192304 THEN 4424403 WHEN sp.master_product_id = 109336 THEN 4424403 WHEN sp.master_product_id = 158027 THEN 4213727 WHEN sp.master_product_id = 4213727 THEN 4213727 WHEN sp.master_product_id = 195156 THEN 4213727 WHEN sp.master_product_id = 2045916 THEN 4110824 WHEN sp.master_product_id = 4110824 THEN 4110824 WHEN sp.master_product_id = 157118 THEN 4110824 WHEN sp.master_product_id = 157278 THEN 4110824 WHEN sp.master_product_id = 155793 THEN 4110824 WHEN sp.master_product_id = 166942 THEN 4259731 WHEN sp.master_product_id = 4259731 THEN 4259731 WHEN sp.master_product_id = 3569061 THEN 4259731 WHEN sp.master_product_id = 112144 THEN 4259731 WHEN sp.master_product_id = 155798 THEN 4259731 WHEN sp.master_product_id = 4681547 THEN 4259731 WHEN sp.master_product_id = 4085256 THEN 4085256 WHEN sp.master_product_id = 4019922 THEN 4085256 WHEN sp.master_product_id = 364245 THEN 4415300 WHEN sp.master_product_id = 4415300 THEN 4415300 WHEN sp.master_product_id = 155608 THEN 4415300 WHEN sp.master_product_id = 150735 THEN 5280320 WHEN sp.master_product_id = 5280320 THEN 5280320 WHEN sp.master_product_id = 190883 THEN 5280320 WHEN sp.master_product_id = 96304 THEN 5280320 WHEN sp.master_product_id = 109535 THEN 5280320 ELSE sp.master_product_id END limit 500
Bindings:
[8506300,8338309,5280320,4493674,4492500,4463695,4463500,4463398,4451296,4447166,4424403,4421543,4415637,4415300,4407842,4405567,4402031,4395765,4377691,4371280,4352379,4344609,4324769,4311709,4302537,4279303,4259731,4259327,4234035,4228681,4226326,4226263,4223552,4213899,4213727,4210061,4210059,4209858,4208492,4193606,4191170,4181002,4179499,4179442,4178083,4175300,4174704,4173605,4172615,4165706,4165056,4160745,4159960,4158159,4144684,4126286,4122596,4121710,4118979,4118978,4118966,4117404,4116844,4116623,4115995,4110824,4110791,4109280,4107318,4101153,4099827,4098748,4096522,4096518,4096508,4096506,4095651,4094723,4093867,4089325,4085256,4085054,4083914,4080687,4079555,4078589,4077839,4077655,4073788,4073673,4073345,4073344,4073343,4072452,4072451,4068252,1453310,156666,2984317,1465364,162808,1453360,112864,160598,3619438,622184,190924,154941,95625,97843,133515,162165,110740,4148882,162154,3253825,2261290,4041677,154967,162805,124682,2676452,378375,162150,1907879,133491,199419,109305,150738,192306,192305,1453237,2928563,196438,2603553,179969,166089,192304,109336,158027,195156,2045916,157118,157278,155793,166942,3569061,112144,155798,4681547,4019922,364245,155608,150735,190883,96304,109535,0,542,560]
#9
⏱️ 19.78 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3774807,3771322,3773745,3774808,368109,3777013,3765213,358948,367714,3772776,3771609,365428,363812,367721,3765211,3768059,363108,370739,3770570,3774704,358946,363096,3588548,3582747,3583256,3586142,3582180,3585942,3584729,3584730,3582950,3583353,3585949,3585946,3587589,3582178]