| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
A tidier version of https://github.com/apache/couchdb/pull/3384 that
saves an unnecessary call to collate.
|
| |\
| |
| | |
use collate in lookup
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
If one of the provided lookup keys doesn't exist in the ebtree, it can
inadvertently prevent a second lookup key from being found if it the
first key greater than the missing lookup key is equal to the second
lookup key.
|
| |/
|
|
|
|
| |
These two test cases expose the subtle bug in ebtree:lookup_multi/3
where a key that doesn't exist in the tree can prevent a subsequent
lookup key from matching in the same KV node.
|
| |
|
| |
1. The caching effort was a bust and has been removed. 2) chunkify can be done externally with a custom persist_fun.
|
| | |
|
| |
|
|
|
| |
Any ebtree that uses chunked key encoding will accidentally wipe out any
nodes that have a UUID with more than one leading zero byte.
|
| |
|
|
|
|
|
|
| |
The ebtree caching layer does not work correctly in conjunction with
FoundationDB transaction retry semantics. If we incorrectly cache nodes
that are not actually read from FoundationDB, a retried transaction will
rely on incorrectly cached state and corrupt the ebtree persisted in
FoundationDB.
|
| |
|
|
|
| |
Caught during Elixir tests. I've added a unit test to `ebtree.erl` to
ensure we don't regress in the future.
|
| |
|
|
|
| |
This keeps validation during tests but disables the validation during
production to avoid the overhead of collation.
|
| |
|
|
|
|
| |
Using lists:umerge/3 adds extra invocations of the collation algorithm
because its using `=<` semantics when ebtree collations are capable of
producing `lt, eq, gt` results.
|
| |
|
|
| |
Inner nodes of the B+Tree are now immutable so that they can be cached.
|
| |
|
|
|
| |
This allows looking up multiple keys simultaneously which reduces the
amount of overhead due to node serialization and collation.
|
| |
|
|
|
| |
This allows for batch insertion of keys in order to minimize node
serialization and collation costs.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
We also redefine the internal collation api for clarity.
|
| | |
|
| |
|
|
| |
Ensure we only collate nodes, members and k/v's as intended.
|
| |
|
|
|
| |
This removes spurious conflicts and allows concurrent writing to
non-overlapping parts of the tree.
|
| |
|
|
|
|
| |
This commit removes the get/wait/future split as it made it much
harder to pass the fdb key down. Since those functions only call each
other, there is no loss of functionality.
|
| | |
|
| | |
|
| |
|