in reply to Speeding up data lookups
Another possibility is to steal an idea from dbz, which indexes a fixed format text file by using the index values as the keys, and the file offset of the start of the record as values. This is fairly straightforward to do with Berkeley DB. A few well-chosen indexes can make a huge difference, without requiring a full rewrite into a relational database.
So if you used mmap and a dbz-style index together, you'd get the file offset from the DB, then use substr to inspect the mmap'd data at that location.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Speeding up data lookups
by suaveant (Parson) on Sep 19, 2005 at 19:31 UTC | |
by sgifford (Prior) on Sep 19, 2005 at 20:48 UTC | |
by graff (Chancellor) on Sep 19, 2005 at 20:30 UTC |