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

add a non-snapshot Collection.Get(key, ReaderOptions) API #15

Closed
steveyen opened this issue Mar 1, 2017 · 2 comments
Closed

add a non-snapshot Collection.Get(key, ReaderOptions) API #15

steveyen opened this issue Mar 1, 2017 · 2 comments

Comments

@steveyen
Copy link
Member

steveyen commented Mar 1, 2017

If a user just wants to lookup a single item in a collection, they have to first create a snapshot, then snapshot.Get(), then snapshot.Close().

One issue is creating a snapshot means memory allocations (of the snapshot instance and taking a copy of the segment stack).

A "onesie" API to just lookup a single item, if it can be implemented efficiently (without undue memory allocations and with having to hold a lock for a long time), more be more convenient for folks to grok.

(See also #14)

@steveyen steveyen mentioned this issue Mar 1, 2017
@abhinavdangeti
Copy link
Member

@steveyen
Copy link
Member Author

Thanks @abhinavdangeti for adding the Collection.Get() API

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

No branches or pull requests

2 participants