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

Built in retention policy #4369

Open
mounte opened this issue Apr 3, 2024 · 0 comments
Open

Built in retention policy #4369

mounte opened this issue Apr 3, 2024 · 0 comments
Labels
Core Related to storage, data type, etc. Enhancement Enhance existing functionality New feature Feature requests SQL Issues or changes relating to SQL execution

Comments

@mounte
Copy link

mounte commented Apr 3, 2024

Is your feature request related to a problem?

Currently users of QuestDB are limited to external scripts for doing maintenance related to dropping old data.
In other db's there are built in "retention policies" that you can add to tables.

Describe the solution you'd like.

Introducing something like:
ALTER TABLE <name> SET RETENTION <condition>
I think having that as a basic feature with no advanced conditions to begin with would prove very useful.

In our cases having a simple INTERVAL or "OLDER THAN" x hours/days/... would cover 90% of what we do externally today.

Also, as mentioned in #1691 having a condition of dropping the oldest data if size of table gets bigger than X is probably a good condition.

Describe alternatives you've considered.

External bash scripts, python scripts etc...

Full Name:

Daniel Wedlund

Affiliation:

Mounte AB

Additional context

Mentioned this on slack 2023-07-27
image

@mounte mounte added the New feature Feature requests label Apr 3, 2024
@nwoolmer nwoolmer added Enhancement Enhance existing functionality SQL Issues or changes relating to SQL execution Core Related to storage, data type, etc. labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to storage, data type, etc. Enhancement Enhance existing functionality New feature Feature requests SQL Issues or changes relating to SQL execution
Projects
None yet
Development

No branches or pull requests

2 participants