Skip to content

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

@timshannon

Description

@timshannon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues related to current API limitations.kind/enhancementSomething could be better.priority/P2Somehow important but would not block a release.status/more-info-neededThe issue has been sent back to the reporter asking for clarifications

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions