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 performance of budget stats #1472

Open
voodoorai2000 opened this issue May 15, 2018 · 1 comment
Open

Improve performance of budget stats #1472

voodoorai2000 opened this issue May 15, 2018 · 1 comment
Assignees

Comments

@voodoorai2000
Copy link
Member

voodoorai2000 commented May 15, 2018

Context

To view budget stats (admin/stats/budgets) a rake task is executed every half an hour

What

Make queries to calculate budget stats for the support and balloting phases more efficient to avoid having to use the rake task

How

  • Create a large set of data using Madrid's numbers as a reference:
    40.000 participants casting 400.000 votes
  • Make the page load in a reasonable amount of time 5-20 seconds
  • Cache partial result variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants