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

Update of admin/stats/budget_balloting calculus method #1520

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

raul-fuentes
Copy link

@raul-fuentes raul-fuentes commented Jun 12, 2018

References

#1472

Objectives

Change the statistics page admin/budget_balloting. The statistics are now calculated on the fly.

Visual Changes

None

Notes

Here can be seen some screenshots showing the performance of the proposed change

  • the db numbers
    screenshot from 2018-06-12 17-50-53

  • the time needed to response
    screenshot from 2018-06-26 13-39-02

  • the actual html output
    screenshot from 2018-06-26 13-39-49

  • I strongly recommend use 'intersect' as soon as it becomes available on Active Record, or if it is necessary that the page be faster you can use sql (it is not very canonical but it improves the efficiency)

@raul-fuentes raul-fuentes force-pushed the update_stats branch 3 times, most recently from 31d1f67 to eee4c43 Compare June 14, 2018 10:54
@raul-fuentes raul-fuentes changed the title [WIP] Update of admin/stats/budget_balloting calculus method Update of admin/stats/budget_balloting calculus method Jun 14, 2018
@raul-fuentes raul-fuentes force-pushed the update_stats branch 4 times, most recently from b59e328 to 2945ffc Compare July 2, 2018 12:19
@aitbw aitbw force-pushed the update_stats branch 2 times, most recently from ad3086c to 6823f0b Compare August 2, 2018 18:06
the stats/budget are calculated on the fly,  this method
require about 10/20 seconds with 350000 votes and 4000 users
the orders which retrieves the data are now written with arel
 instead of sql
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

Successfully merging this pull request may close these issues.

1 participant