Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

following がとても多いユーザーでも快適に利用できるようにしたい #28

Open
tricknotes opened this issue Mar 7, 2013 · 6 comments

Comments

@tricknotes
Copy link
Owner

現在、 following がとても多いユーザーだと、以下の不具合があります:

  • dashbord / My hot repository のページを表示するのにとても時間がかかる
  • メールを送るのにとても時間がかかる(かつ、http リクエスト発行回数が多くなり、メール送信時にリクエストが失敗する可能性が高くなる)

うむむ。

@june29
Copy link
Collaborator

june29 commented Mar 8, 2013

バッチでこまめに計算させておいて結果をキャッシュしてそれを表示やメールに利用する、とかですかねぇ。

@komagata
Copy link
Contributor

komagata commented Mar 8, 2013

今ってherokuで動いているんですか?

@tricknotes
Copy link
Owner Author

@june29 アドバイスありがとうございます!はいー、今も一部のデータ(Repository とか Star とか)はキャッシュしているので、あとは followings をキャッシュすれば GitHub API へのリクエストなしででメール送信が可能になります!

@tricknotes
Copy link
Owner Author

@komagata はい!フロントエンドは heroku ですよー。GitHub から Star を取得して MongoDB につっこむ部分だけ別のサーバで動かしています。

@komagata
Copy link
Contributor

komagata commented Mar 8, 2013

@tricknotes なるほどー。
キャッシュするタスクの出力がちゃんとエスケープシーケンスで色付いてて素敵ですよね 😃

@tricknotes
Copy link
Owner Author

@komagata わおー、ありがとうございます:dizzy:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants