objectbox-java
objectbox-java copied to clipboard
Set Max number of rows in database and remove old entries
Describe the solution you'd like It would be good if we developer can set limit for maximum number of rows that can be saved in database so that if entries reach to max limit ,old entries should be deleted.
Describe alternatives you've considered
Additional context
Thanks for the suggestion. I guess currently this can be considered as left to the app developer.
This might be related to #552.
Btw, as this refers to "old entries", it makes sense to also refer to our time series edition, which allows to operate on time based objects very efficiently, e.g. "delete before timestamp".