What kind of database are you originally loading from? It sounds like you are slurping some kind of flat file and hashing for searches.
It might be better to populate the BerkeleyDB once and keep it around as the primary database. Other databases like SQLite might be preferable.
A sharper picture of what you're doing would help.
After Compline,
Zaxo
In reply to Re: Speeding a disk based hash
by Zaxo
in thread Speeding a disk based hash
by albert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |