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

Allow exporting the ranklist in a CSV format #139

Open
valo opened this issue Dec 3, 2016 · 2 comments
Open

Allow exporting the ranklist in a CSV format #139

valo opened this issue Dec 3, 2016 · 2 comments

Comments

@valo
Copy link
Owner

valo commented Dec 3, 2016

May we we should allow this only to coaches as it doesn't make much sense for the regular users to be able to do that.

@SValkanov
Copy link
Contributor

The idea is to use something like 'whenever' and generate the csv each day, or it will be generated on each run for export?

@valo
Copy link
Owner Author

valo commented May 16, 2017

The ranklist can be cached in the rails cache for certain amount of time. There is a memcached service running on production, so it should work pretty well. Something like this: http://guides.rubyonrails.org/caching_with_rails.html#low-level-caching

We should evaluate how much time and storage it will take to compile it. It may turn out it is very expensive to generate it, in which case we can have a background job, which generates it and refreshes it in the cache. It will need some benchmarking and analysis.

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

2 participants