Sunday, December 23, 2007

DBM::Deep

It turns out that NDBM key/value pairs can have a maximum length of 1023 characters, combined. This is, to say the least, unsuitable for my purposes, as I had been using NDBM for storage of document text chunks.

I asked for alternatives a while ago on #perl, and one person mentioned DBD::Deep. At the time I was leaning towards SQLite or a custom tie() job, but decided to give D::D a look before making a decision. I'm glad I did. Today I'm refactoring the DOM to use it instead of NDBM (which only ever worked because the Lexer and DOM test files are so minimal).

No comments: