yoshikouki / dividend-portal

1 stars 1 forks source link

企業情報をDBで保持する #12

Closed yoshikouki closed 3 years ago

yoshikouki commented 3 years ago

8a7c971 の変更で実行時間を 94.6% 削減できた

改良前

root@2f0e6af2c776:/app# time bundle exec bin/rake company:update_to_latest
Running via Spring preloader in process 115
Start
Done
inserted: 23549
updated: 0

real    3m36.541s
user    0m0.273s
sys 0m0.104s

改良後

root@2f0e6af2c776:/app# time bundle exec bin/rake company:update_to_latest
Running via Spring preloader in process 135
Start
Done
inserted: 23549
updated: 0

real    0m11.632s
user    0m0.258s
sys 0m0.101s
yoshikouki commented 3 years ago

bin/setup 時に初期設定する Seed ファイルを用意しないといけない