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

Allow multiple iterators in a single Read / Write transaction #705

Open
timshannon opened this Issue Jan 30, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@timshannon
Copy link
Contributor

timshannon commented Jan 30, 2019

Currently you can only have one iterator on a read / write transaction:
https://github.com/dgraph-io/badger/blob/master/iterator.go#L396

I have a scenario where I would want to read the consistent state of the current transaction before it's committed. I'm currently getting around this by re-seeking a single iterator, but the ideal situation would allow for using multiple iterators.

According to this comment: #704 (comment) it may be possible.

@manishrjain manishrjain added the P1 label Feb 1, 2019

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