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

Reverse relative indexing revision of key in KV bucket #6123

Open
AbstractiveNord opened this issue Nov 13, 2024 · 2 comments
Open

Reverse relative indexing revision of key in KV bucket #6123

AbstractiveNord opened this issue Nov 13, 2024 · 2 comments
Labels
proposal Enhancement idea or proposal

Comments

@AbstractiveNord
Copy link

Proposed change

Support relative backwards indexing for get command of KV bucket by using negative numbers.

Use case

Eliminate separate network call for getting actual revision when that's not needed.

Contribution

Yes.

@AbstractiveNord AbstractiveNord added the proposal Enhancement idea or proposal label Nov 13, 2024
@ripienaar
Copy link
Contributor

Can you please provide some additional information so this is clearer to understand?

@AbstractiveNord
Copy link
Author

AbstractiveNord commented Nov 13, 2024

Can you please provide some additional information so this is clearer to understand?

For nats kv get call, I'd like to use --revision relative backward offset, like -1 for last version - 1, etc.

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

No branches or pull requests

2 participants