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

read snapshots? [JIRA: RIAK-2321] #115

Open
benoitc opened this issue May 27, 2014 · 7 comments
Open

read snapshots? [JIRA: RIAK-2321] #115

benoitc opened this issue May 27, 2014 · 7 comments
Milestone

Comments

@benoitc
Copy link

benoitc commented May 27, 2014

Reading the code it seems that read snapshots [1] are not supported. Did I miss something? Do you plan to add such support?

[1] http://leveldb.googlecode.com/svn/trunk/doc/index.html

@slfritchie slfritchie added this to the 2.1 milestone May 29, 2014
@slfritchie
Copy link
Contributor

Added 2.1 milestone, subject to further planning review.

@benoitc
Copy link
Author

benoitc commented Oct 11, 2014

Looks like https://github.com/basho/eleveldb/compare/arg-snapshot-2 is implementing it. I wonder if anyone tried it.

@benoitc
Copy link
Author

benoitc commented Dec 10, 2015

I would like to relaunch the discussion here. What I would like is having a way to read concurrently from writing. So eventually read could be done in another process. Is there a way to do that right now? Does the iterator provides a snapshot view of the db?

@Basho-JIRA Basho-JIRA changed the title read snapshots? read snapshots? [JIRA: RIAK-2321] Dec 10, 2015
@Basho-JIRA
Copy link

Yes. Iterator is a snapshot view. Iterator, once constructed, can Seek to closest key as well as traverse Next and Prev.

_[posted via JIRA by Matthew Von-Maszewski]_

@benoitc
Copy link
Author

benoitc commented Dec 10, 2015

can the iterator be passed to another erlang process ?

@Basho-JIRA
Copy link

Erlang process on same machine, yes. Linux process no.

_[posted via JIRA by Matthew Von-Maszewski]_

@benoitc
Copy link
Author

benoitc commented Dec 10, 2015

Yes I meant , opening an iterator and use the ref in another process that will eventually close it. would it work?

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

No branches or pull requests

3 participants