Next | Lightweight Databases | 81 |
Here's a hybrid approach to indexing
The bulk of the data will be in a plain text file
But the plain text file takes too long to search
So we'll also have a DBM file that records record byte offsets
Then we can locate records quickly
Complete example code is in indexed.pl
Next | Copyright © 2003 M. J. Dominus |