require "./setup"
sql
Swars::User.vip_except.momentum_only(period: 100.days, at_least: 1).limit(50).ids # => [169, 135378, 181315, 966838, 1011689]
# >>   Swars::SearchLog Count (4.6ms)  SELECT COUNT(*) AS `count_all`, `swars_search_logs`.`user_id` AS `swars_search_logs_user_id` FROM `swars_search_logs` WHERE `swars_search_logs`.`created_at` >= '2024-07-30 11:26:26' GROUP BY `swars_search_logs`.`user_id` HAVING (count_all >= '1') ORDER BY count_all DESC
# >>   ↳ app/models/swars/search_log.rb:33:in `momentum_user_ids'
# >>   Swars::User Ids (245.6ms)  SELECT `swars_users`.`id` FROM `swars_users` WHERE `swars_users`.`user_key` NOT IN ('Cookieboy1129', 'GOLD_harupona', 'Human_of_Amen', 'Jyohshin', 'KURONEKOFUKU', 'Mibuki0101', 'NT1679', 'Nihei_kisi', 'Omannyawa', 'Pklilili', 'RYO_CHiN_', 'Ritsumeikan_APU', 'Ryamaguchi', 'SATORI99', 'Seiryuushogi', 'Shisakugata', 'TAMAKOCHAN_', 'Tesla_R', 'Tokusyo_1', 'UMR_Summer', 'Waiem_0827', 'abacus10', 'adgjm3121', 'akihiko810', 'bulletcheckmate', 'eGuiterman', 'eternalvirgin', 'gagagakuma', 'gomiress', 'hide_yuki_kun', 'kallsium', 'kamiosa', 'kawa_toshi_1', 'kinakom0chi', 'korirakkuma0108', 'kzts', 'maiyahi4649', 'molcar', 'mosangun', 'nao_frag', 'news3939', 'nisiyan0204', 'penguinyasu', 'pooh1122N', 'puniho', 'sea_sky_', 'seimei_0917', 'shinbigiumu', 'sir_lancelo', 'slowstep3210', 'slowstep5678', 'sptree', 'stampedeod', 'staygold3377', 'toshimetal', 'twitter_X', 'wicvofy', 'yinhe', 'yukky1119', 'yuyuqi', 'zun_y', 'BOUYATETSU5', 'itoshinTV', 'Taichan0601', 'MurachanLions', 'pagagm', 'TOBE_CHAN', 'ideon_shogi', 'Odenryu', 'chanlili', 'Dsuke213', 'GOMUNINGEN', 'Y_Hiroshi_316', 'T_Hiroki_323', 'erikokouza', 'Manaochannel', 'KOH56', 'yukkuri22', 'Cupro_Rin', 'AmanogawaNemu', 'Judar_dAlembert', 'uuta_game', 'YumeKokona', 'NamomeOga', 'marinohiyo', 'kone_kone_ru', 'YotsumiyaS', 'eirukoyume', 'Tsukune_Yuki', 'kodai_murasaki', 'oshtaraataru', 'flamme_o', 'K_Yamawasabi', 'ichilitre', 'tabinosoiri', 'ONETWO3', 'tampopochan', 'urechannel', 'pome_em', 'XK_Pekeko', 'SUZUKI_NEKO', 'yukkuri22', 'weissvice', 'K1254', 'Moka_K', 'totutohoku', 'mo_ri_', 'PARM_shogi_CH_', 'ahirutaityouZ', 'ryutaro1991', 'omuomun', 'aya_s_love', 'Seigo_S', 'IrUkAzz', 'raikachess', 'TYosTYos', 'okayama_shogi', 'YT_Dash', 'MartinRiggs', 'MaisonMargiela', 'kanikubo73', '9114aaxt', 'AHIRU_MAN_', 'Ayaseaya', 'Choco_math', 'EffectTarou', 'FujitaAoi', 'Gotanda_N', 'H_Britney', 'Kaku_Kiriko', 'Kousaka_Makuri', 'NgisaNagi', 'RIKISEN_shogi', 'ShowYanChannel', 'SugarHuuko', 'Sukonbu3', 'Sushi_Kuine', 'Sylvamiya', 'UtadaHikaru', 'YARD_CHANNEL', 'anpirika', 'bsplive', 'chisei_mazawa', 'chrono_', 'garo0926', 'gorirakouen', 'UMA7777777', 'hakuyoutu', 'mafuneko', 'micro77', 'mokkun_mokumoku', 'morusuko', 'naruru55', 'ray_nanakawa', 'saisai_shogi', 'verdura', 'yomeP', 'polunga_shogi', 'si_kun_YouTuber', 'Ada_Tsugamachi', 'tayayan_ts', 'kaorin55', 'sakuya_T', 'kimbrelp', 'Traumonac', 'Mitsuki_YouTube', 'stmtk', 'trick98', 'JANUS001', 'discodancer', 'Corilla', 'shusorairaku', 'LEVEKO', 'ttmnttmn', 'touchica', 'ibisya_bokumetu', 'TANTANMENDAYO', 'Habu', 'mrynu', 'enthusi', 'shogiyuuca', '0Komamusume', 'progmemeter', 'takaponpoko', 'himanagoya', 'yaba_bozu2015', 'akutoc', 'funyagakoi', 'momotetsunokami', 'MisoJennifer', 'HomuPaka', 'AygoN7', 'Osaka_Referee', 'shoshirasaka', 'chacopipi0516', 'monkeykong', 'seiryuu1230', 'hisana1', 'harungun', 'kd2001', 'Kaori3159', 'ariakedo', '443443443', 'piyomaru_shogi', 'hebosugiChan', 'IKEMENKISHI', 'ANAGUMA4MAI', 'H_Kirara', 'Jerry_Shogi', 'M_10032', 'Serumasama', 'TokiwadaiMei', 'Weiss_Hairi', 'asa2yoru', 'chodo', 'kisamoko', 'mai_ueo', 'takayukiando', 'tora9900_torara', 'yadamon2525', 'yoru0000', 'hanabi7711', 'nananamin', 'ds4', 'wata1417', 'katoayumn', 'daiwajpjp', 'yamaloveuma', 'HIKOUKI_GUMO', 'ultimate701', 'terauching', 'daichukikikuchi', '5inkyo', 'nitro7910', 'soyokaz', 'SevenColor627', 'santa_ABC', 'arminn', 'createv', 'Naitot', 'hitoride_nemuru', 'Hey_Ya', 'sleepycat', 'tanukitirou', 'zibakuou', 'suzukihajime', 'Janne1', 'alonPlay', 'k_tp', 'sanawaka', 'its', 'success_glory') AND `swars_users`.`id` IN (228939, 4893, 966838, 135378, 169, 181315, 1011689, 107477) LIMIT 50
