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

Garbage collect old unused index segments #31

Open
loganmhb opened this issue Jul 19, 2017 · 0 comments
Open

Garbage collect old unused index segments #31

loganmhb opened this issue Jul 19, 2017 · 0 comments

Comments

@loganmhb
Copy link
Owner

As it stands, old index segments sit around taking up space without being used for anything. It should be possible to track whether a segment is in use or not (and perhaps at what time it was last in use) and delete any segments that are older than a particular time.

In Datomic, this is a manually-triggered operation, because it's difficult to know whether some long-running client process might be hanging on to an old database value that still needs a particular segment. The user is in a better position to know what timescales are safe than the database itself.

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

No branches or pull requests

1 participant