Unofficial Hacker News companion — get notified on comment replies, and more.

Swapping Jolt's sorted collections to a B+tree (opens external site)

33 points by nefreat 7 days ago | yogthos.net | 5 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. If you want to do large updates to B+tree, you better do it with bulk operations. I made a prototype on paper and in Python (unfinished, fails most of the tests) to do it. You provide a sorted list of deleted keys and sorted list of inserts and walk the B+ tree once, skipping unaffected branches and editing modified nodes. Not that difficult, but there are lot of small nuances. My prototype was using an immutable tree which adds some complexity.