Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add lastModified and createdAt metadata #4

Open
malachid opened this issue Sep 17, 2020 · 1 comment
Open

Add lastModified and createdAt metadata #4

malachid opened this issue Sep 17, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@malachid
Copy link
Collaborator

Consider adding the ability to check the date a particular entry was created or last modified.

@malachid malachid added the enhancement New feature or request label Sep 17, 2020
@tndhagedorn
Copy link
Contributor

tndhagedorn commented Jun 6, 2023

We should also add:

  • lastReadAt
  • objectSize

All of this metadata can be used by the preload APIs - preload objects only < X bytes, or only read/written within past X days, etc. This would ensure preload continues to increase performance even as the DB grows

Same with cleaning/vacuuming the database over time - rarely read/written objects, or overly large objects, may be prioritized for deletion.

Another option is to add a "can_recycle" (or similar) to the set APIs - to safely flag which data can be cleaned and which cannot.

Anything to prevent unbounded DB growth over time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants