logoalt Hacker News

Swapping Jolt's sorted collections to a B+tree

11 points • by nefreat • last Tuesday at 2:06 PM • 3 comments • view on HN

Comments

codedokode • today at 1:30 PM

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.

speps • today at 12:40 PM

FYI it's this Jolt: https://github.com/jolt-lang/jolt

NOT this Jolt: https://github.com/jrouwe/joltphysics

➕ show 1 reply