![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^3: Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)by tilly (Archbishop) |
on Jul 24, 2004 at 16:10 UTC ( #377135=note: print w/replies, xml ) | Need Help?? |
If you want to know how a database could tackle a problem like this of mapping IDs to arbitrary information, read this article on BTrees. Then do as perrin said and use BerkeleyDB. That solves this problem in a highly optimized way, in C. If the dataset is large enough that it won't fit in RAM, then you probably want to ask it to build you a BTree rather than a hash. A hash is better if the data all fits in RAM.
In Section
Seekers of Perl Wisdom
|
|