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

Find the first version of a key when using timestamp #780

Open
peroket opened this issue Nov 27, 2023 · 0 comments
Open

Find the first version of a key when using timestamp #780

peroket opened this issue Nov 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@peroket
Copy link

peroket commented Nov 27, 2023

Owner:

Is your feature request related to a problem? Please describe.
When using timestamp, it would be nice for us to be able to retrieve the first version of a key conveniently.

Describe the solution you'd like
Having an option to seek to the smallest timestamp of a specific key in an iterator, or a get() that look for key with timestamp equal or above a certain value (rather than equal or below).

Describe alternatives you've considered
For now, we have to use iterator seek with timestamp enabled and then iterate until the very last entry (to get the smallest timestamp). Can do the same thing with successive gets. This forces to iterate over the whole range of versions, even though they are discarded immediately. Could also seek for the next key and then call prev(), but that forces to disable prefix seek.

Additional context

@bosmatt bosmatt added the enhancement New feature or request label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants