#5
⏱️ 9.48 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[222,231,131,307,287,2,229,179,209,355,41,318,289,200]
#6
⏱️ 25.92 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?)
Bindings:
[1911613,1909908,1909168,1907954,1907953,1907951,1907944,1907943,1907942,1907932,1907931,1907926,1907923,1907915,1907901,1907898,1462893,1461087,1457328,1456000,1455743,1455711,1455704,1453441,292896,155741,126460,124636,124495,124235,111598,111206,1453431,110100,190786,1431171,135652,170225,133484,190891,96276,133481,96274,199451,1431173,109470,192373,96300,133478,109601,150752,1431175,191005,1456475,1453318,96273,133477,109477,150753,190931,135651,133495,199385,1453432,150728,1426746,1463428,158903,8918271,true,287]
#8
⏱️ 21.57 мс
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 = 1907942 THEN 1907942 WHEN sp.master_product_id = 1453431 THEN 1907942 WHEN sp.master_product_id = 110100 THEN 1907901 WHEN sp.master_product_id = 190786 THEN 1907901 WHEN sp.master_product_id = 1431171 THEN 1907901 WHEN sp.master_product_id = 1907901 THEN 1907901 WHEN sp.master_product_id = 135652 THEN 1907901 WHEN sp.master_product_id = 170225 THEN 1907901 WHEN sp.master_product_id = 1907953 THEN 1907953 WHEN sp.master_product_id = 133484 THEN 1907953 WHEN sp.master_product_id = 190891 THEN 1907953 WHEN sp.master_product_id = 96276 THEN 1907953 WHEN sp.master_product_id = 133481 THEN 1907931 WHEN sp.master_product_id = 1907931 THEN 1907931 WHEN sp.master_product_id = 96274 THEN 1907931 WHEN sp.master_product_id = 199451 THEN 1907931 WHEN sp.master_product_id = 1431173 THEN 1907931 WHEN sp.master_product_id = 109470 THEN 1907931 WHEN sp.master_product_id = 192373 THEN 1455704 WHEN sp.master_product_id = 1455704 THEN 1455704 WHEN sp.master_product_id = 96300 THEN 1907926 WHEN sp.master_product_id = 133478 THEN 1907926 WHEN sp.master_product_id = 109601 THEN 1907926 WHEN sp.master_product_id = 150752 THEN 1907926 WHEN sp.master_product_id = 1431175 THEN 1907926 WHEN sp.master_product_id = 1907926 THEN 1907926 WHEN sp.master_product_id = 191005 THEN 1907926 WHEN sp.master_product_id = 1909168 THEN 1909168 WHEN sp.master_product_id = 1456475 THEN 1909168 WHEN sp.master_product_id = 1907932 THEN 1907932 WHEN sp.master_product_id = 1453318 THEN 1907932 WHEN sp.master_product_id = 96273 THEN 1907954 WHEN sp.master_product_id = 133477 THEN 1907954 WHEN sp.master_product_id = 109477 THEN 1907954 WHEN sp.master_product_id = 150753 THEN 1907954 WHEN sp.master_product_id = 190931 THEN 1907954 WHEN sp.master_product_id = 1907954 THEN 1907954 WHEN sp.master_product_id = 135651 THEN 1907954 WHEN sp.master_product_id = 133495 THEN 1907943 WHEN sp.master_product_id = 199385 THEN 1907943 WHEN sp.master_product_id = 1453432 THEN 1907943 WHEN sp.master_product_id = 1907943 THEN 1907943 WHEN sp.master_product_id = 150728 THEN 1907943 WHEN sp.master_product_id = 1426746 THEN 1455711 WHEN sp.master_product_id = 1455711 THEN 1455711 WHEN sp.master_product_id = 1907944 THEN 1907944 WHEN sp.master_product_id = 1463428 THEN 1907944 WHEN sp.master_product_id = 1457328 THEN 1457328 WHEN sp.master_product_id = 158903 THEN 1457328 WHEN sp.master_product_id = 8918271 THEN 1907923 WHEN sp.master_product_id = 1907923 THEN 1907923 ELSE sp.master_product_id END limit 500
Bindings:
[1911613,1909908,1909168,1907954,1907953,1907951,1907944,1907943,1907942,1907932,1907931,1907926,1907923,1907915,1907901,1907898,1462893,1461087,1457328,1456000,1455743,1455711,1455704,1453441,292896,155741,126460,124636,124495,124235,111598,111206,1453431,110100,190786,1431171,135652,170225,133484,190891,96276,133481,96274,199451,1431173,109470,192373,96300,133478,109601,150752,1431175,191005,1456475,1453318,96273,133477,109477,150753,190931,135651,133495,199385,1453432,150728,1426746,1463428,158903,8918271,0,287]
#9
⏱️ 17.18 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5284321,5284143,56690971,5293742,5297408,5271717,5274319,5274359,5274366,5281499,5281506,5281523,5281630,5274026,5274357,5274360,5274371,5274376,5274379,5274384,5274394,5274400,5274402,5274403,5281600,5284344,5293783]