in reply to Re: Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)( A DB won't help)
in thread Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)
As for the "file with big holes" approach, only some filesystems implement that. Furthermore depending on how Perl was compiled and what OS you're on, you may have a fixed 2 GB limit on file sizes. With real data, that is a barrier that you're probably not going to hit. With your approach, the file's size will always be a worst case. (And if your assumption on the size of a record is violated, you'll be in trouble - you've recreated the problem of the second situation that you complained about in point 1.)
I'd also be curious to see the relative performance with real data between, say, BerkeleyDB and "big file with holes". I could see it coming out either way. However I'd prefer BerkeleyDB because I'm more confident that it will work on any platform, because it is more flexible (you aren't limited to numerical offsets) and because it doesn't have the record-size limitation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)( A DB won't help)
by bgreenlee (Friar) on Jul 24, 2004 at 17:36 UTC | |
|
Re^3: Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)( A DB won't help)
by BrowserUk (Patriarch) on Jul 25, 2004 at 11:22 UTC | |
by Your Mother (Archbishop) on Jul 27, 2004 at 22:09 UTC | |
by BrowserUk (Patriarch) on Jul 27, 2004 at 22:44 UTC | |
by Your Mother (Archbishop) on Jul 28, 2004 at 00:02 UTC | |
|
Re^3: Combining Ultra-Dynamic Files to Avoid Clustering (Ideas?)( A DB won't help)
by BrowserUk (Patriarch) on Jul 24, 2004 at 17:35 UTC | |
by tilly (Archbishop) on Jul 24, 2004 at 20:19 UTC |