in reply to MLDBM performance problem

Strange. This may have something to do with the BTree implementation in the version of DB_File you have. You might try upgrading your libdb to a later version (this is something you'd do through your OS tools) and upgrading to the latest BerkeleyDB release from CPAN (which includes the latest DB_File).

There is also a way to change the cache size that it uses, although you may need to use the API from the the BerkeleyDB module rather than the DB_File one to do it.

If your keys are small enough, SDBM_File can be faster than DB_File. It has size limitations though.

Replies are listed 'Best First'.
Re^2: MLDBM performance problem
by henrywalker23 (Novice) on Jun 10, 2007 at 13:36 UTC
    Thanks, I'll try some of your suggestions.
Re^2: MLDBM performance problem
by henrywalker23 (Novice) on Jun 11, 2007 at 06:01 UTC
    In the meantime I have upgraded DB_File to the latest version - and this solved my problem - at least for the present. I will bear in mind your other suggestions in case it reappears. Thanks again.