Hacker News new | ask | show | jobs
by shakna 393 days ago
If storage and concern aren't a concern when writing, then you probably shouldn't be doing workarounds to include the index in the file itself. Follow the dbm approach and separate both into two different files.

Which is what dbm, bdb, Windows search indexes, IBM datasets, and so many, many other standards will do.

1 comments

Separate files isn't always the answer. It can be more awkward to need to download both and always keep them together compared to when it's a single file.