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

Improve ranking calculation #6

Open
spolnik opened this issue Aug 29, 2018 · 0 comments
Open

Improve ranking calculation #6

spolnik opened this issue Aug 29, 2018 · 0 comments

Comments

@spolnik
Copy link
Member

spolnik commented Aug 29, 2018

Instead of using caching and compute on demand ranking, it should be pre-computed after every event coming. But think about that in other way, if there is many changes during 1 sec, would we recalculate after each? That would kill performance ...

The other way to deal with that is with time. Let's say, on the beginning service takes snapshot of results, and stores datetime which identifies the moment where snapshot was took. Then everytime it needs to rebuild ranking, it ask for all results between now() - snapshot time - refreshing snapshot to a new one?

  • how to use messages to make it more performant and consistent?
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

1 participant