-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Removing nodes when they are underoccupied #2
Comments
@mr-bat I just noticed your comment. Sorry to be late. It's because prefix b+tree requires a special case for deletion. Unlike general b+-tree, prefix b+-tree stores shortest possible separator as see in https://github.com/myui/btree4j/blob/master/src/main/java/btree4j/BTree.java#L802 Then, even if a key is deleted, it's hard to determine while the intermediate seperator(s) in branch nodes can be deleted or not. |
But as described in the paper, Better to implement it for delete-heavy workloads. |
Could you explain a bit how we approach this situation? |
You can also look at this project https://github.com/mr-bat/BPlusTree. |
Why don't you remove unnecessary nodes when they become under-occupied? How are you going to deal with a large number of useless branch nodes in tree?
The text was updated successfully, but these errors were encountered: