in reply to Help performing "random" access on very very large file
I'd go indeed with 4), BerkeleyDB (DB_BTREE), key line number, value byte offset. That would allow you to do delta seeks back and forth. Splitting the one big file into a reasonable number (depending on number of file descriptors available) of smaller chunks might be helpful, as rpanman already noted.
update: obvious correction
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help performing "random" access on very very large file
by blue_cowdawg (Monsignor) on Jul 16, 2007 at 15:07 UTC | |
|
Re^2: Help performing "random" access on very very large file
by ikegami (Patriarch) on Jul 16, 2007 at 15:05 UTC |