forked from dgraph-io/badger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge function should process items in order (dgraph-io#841)
With this commit, merge operator processes the items in the order of which they were inserted. Earlier it would be processed by the merge function in reverse order. For instance, if `A` , `B`, `C` were inserted, and merge function was simple `append` operation, they would be passed to the merge function as ``` mergeFunc(C, B) => result CB mergeFunc(CB, A) => result CBA ``` With this change, they're passed to the merge function as ``` mergeFunc(B, C) => result BC mergeFunc(A, BC) => result ABC ```
- Loading branch information
Ibrahim Jarif
authored
Jun 4, 2019
1 parent
633a8fa
commit 18f8a33
Showing
3 changed files
with
51 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters