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

Model score example: Prune mock data periodically #702

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jcheng5
Copy link
Collaborator

@jcheng5 jcheng5 commented Aug 24, 2023

Before this PR, the mock data would be added continuously to the SQLite database every second and never be pruned or vacuumed. Since the gallery.shinyapps.io-deployed copy is intended to be linked from the homepage and kept running all the time, it needs to stabilize its memory and disk usage. This change ensures that an hour of historical data is available from app startup, and deletes data that's >1 hour old every minute.

@jcheng5 jcheng5 requested a review from gshotwell August 24, 2023 16:44
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