Tuesday, January 10, 2006

a crude worm btree

I've written a crude transactional write once read many btree for use by tki. Here's the first cut:

http://agilewiki.org/wiki/uuid/0lloVIKPgOvU8OsfnyjuAXjV

It does no logging, but it does use a before-image file. It has only get, prior and put operations, and put is append only.

The thought here is that tki will do its own logging, in the form of a .dmp file, so we can use the restore script to rebuild a broken database from the log file.

But I have yet to do any testing.

I like python--you can do a lot in less than 400 lines of code. :-)

0 Comments:

Post a Comment

<< Home