in reply to flat-file vs DB_File

SDBM_File is actually significantly faster than DB_File. It's only drawback is a limitation on record size, which will be no problem for your data.