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

Use cache submission stats #2176

Merged
merged 8 commits into from
Jan 11, 2022
Merged

Use cache submission stats #2176

merged 8 commits into from
Jan 11, 2022

Conversation

denniswambua
Copy link
Contributor

@denniswambua denniswambua commented Jan 4, 2022

Changes / Features implemented

Cache submission stats and chart results for a configurable time (1 hour default).
This will reduce database hits and will improve performance especially during high peek.

Steps taken to verify this change does what is intended

Tested in stage

Side effects of implementing this change

The stats like contributor counts results will be delayed by one hour.

@denniswambua denniswambua force-pushed the use_cache_submission_stats branch 2 times, most recently from 3708ef8 to bde7fe1 Compare January 7, 2022 06:06
DavisRayM
DavisRayM previously approved these changes Jan 10, 2022
Copy link
Contributor

@DavisRayM DavisRayM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, have one comment

onadata/settings/common.py Outdated Show resolved Hide resolved
@DavisRayM DavisRayM merged commit 07af4cd into master Jan 11, 2022
@DavisRayM DavisRayM deleted the use_cache_submission_stats branch January 11, 2022 11:50
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.

2 participants