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

Periodically purge historic data #154

Open
bajtos opened this issue Nov 28, 2023 · 1 comment
Open

Periodically purge historic data #154

bajtos opened this issue Nov 28, 2023 · 1 comment

Comments

@bajtos
Copy link
Member

bajtos commented Nov 28, 2023

Setup a daily cron job to purge historic date. Let's keep only data for the last 30 days for start.

Here is a query we can run manually for now (remember to update the date filter):

DELETE FROM spark_rounds WHERE created_at < '2023-11-01T00:00:00.000Z';
@bajtos
Copy link
Member Author

bajtos commented Jan 8, 2024

We are no longer keeping historical measurements, see #187 and #188.

What's remaining:

  • spark_rounds (a cascade deletes rows from retrieval_tasks)
  • commitments

@bajtos bajtos moved this to 🧊 icebox in Space Meridian Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🧊 icebox
Development

No branches or pull requests

1 participant