Closed CinematicCow closed 9 months ago
Using the fs2
package, we can change the init function as follows:
func NewBPlusTree(filePath string) (*BPlusTree, error) {
bf, err := fmap.CreateBlockFile(filePath)
if err != nil {
return nil, err
}
tree, err := bptree.New(bf, 8, -1)
if err != nil {
return nil, err
}
return &BPlusTree{tree: tree}, nil
}
Need to test with bench
closed with 992bc83
Need to make the B+ tree persistent to save memory. Proposed solution :