Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce StreamDone in bulk loader (#4297)
During reduce phase, we insert predicate in sorted order to Badger instances. Each predicate has one underlying stream in stream writer and each stream has one underlying table builder. Each table builder has at least 1MB of buffer with it. Previously we had no way to close a stream(hence underlying table builder was in memory until flush is called on steam writer). With stream done support in BadgerV2.0, we can closed stream once we are done writing a predicate.
- Loading branch information