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

PM-1683 DB cleanup script #54

Merged
merged 1 commit into from
May 29, 2024
Merged

PM-1683 DB cleanup script #54

merged 1 commit into from
May 29, 2024

Conversation

piotr-iohk
Copy link
Collaborator

The system's database can grow over time, but typically, keeping more than 90 days of data isn't necessary. However, you might choose to retain data for a longer period. The schema includes a function to clean up data older than a specified number of days:

-- Example call to the function to clean up data older than 180 days
SELECT cleanup_old_data(180);

@piotr-iohk piotr-iohk requested a review from simisimis May 28, 2024 19:05
@piotr-iohk piotr-iohk self-assigned this May 28, 2024
Copy link
Collaborator

@simisimis simisimis left a comment

Choose a reason for hiding this comment

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

looks good 👍

@piotr-iohk piotr-iohk merged commit 0b44774 into main May 29, 2024
1 check passed
@piotr-iohk piotr-iohk deleted the db-cleanup branch May 29, 2024 09:16
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