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

Is it possible to specify a max number of history_tracks to maintain for each document? #254

Open
noorani786 opened this issue Nov 9, 2023 · 1 comment
Labels

Comments

@noorani786
Copy link

For example, say for a given model I only want to keep the last 100 revisions and discard the rest. Is this possible?

@dblock dblock added the question label Nov 9, 2023
@dblock
Copy link
Collaborator

dblock commented Nov 9, 2023

AFAIK not directly. The tracker stores data in a collection, so you should be able to create an index on top of it that makes it a capped collection, but I've never tried.

Regardless of the implementation this would be a great feature request! Want to try to implement it? Start with (failing) tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants