objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Set Max number of rows in database and remove old entries

Open TARUN-NOVOPAY opened this issue 5 years ago • 2 comments

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

TARUN-NOVOPAY avatar Jan 13 '21 07:01 TARUN-NOVOPAY

Thanks for the suggestion. I guess currently this can be considered as left to the app developer.

This might be related to #552.

greenrobot-team avatar Jan 18 '21 09:01 greenrobot-team

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".

greenrobot avatar Jan 18 '21 10:01 greenrobot