Looking for a file format
- From: Florian Brucker <torf@xxxxxxxxxxxx>
- Date: Mon, 24 Sep 2007 15:12:09 +0200
I have a data structure that could probably be best described as a
collection of linked hash-tables: Each item is a hash, where the keys
differ from item to item. Some of the values of each item's hash can
(and will) be links/pointers/references to other items.
What I'm looking for is a way to store this kind of data on hard disk,
i.e. I'm looking for ideas for a suitable file format. Issues:
- The data is not read-only: Changing values and adding/removing keys of
the hashes is a central point of the whole application.
- The set of possible keys cannot be narrowed down (as they are selected
by the user). Nevertheless one would like to have possibilities to use
the keys in similiar fashion as database columns for searching.
- The data is too big to fit it into RAM as a whole. The format needs to
support a read/write cache in a nice way.
- The links to other items must be stored in a sensible way, i.e.
looking up an item by some kind of id must be supported in a fast way.
So basically this boils down to some kind of mini-filesystem in a file.
I know that I'll probably have to trade speed against file size, etc.,
but right now I'm rather looking for general ideas on how to approach
this problem. I had a hard time finding any information about such
formats, probably because I couldn't think of any good keywords to
search for. Any pointers to papers/implementations/descriptions of
similar systems are greatly appreciated.
Regards,
Florian
.
- Follow-Ups:
- Re: Looking for a file format
- From: user923005
- Re: Looking for a file format
- Prev by Date: Re: Abstract Interpretation of Programming Language C
- Next by Date: endian conversions
- Previous by thread: new programs for Window, WEB, and for good RAD - Rapid Application Development,
- Next by thread: Re: Looking for a file format
- Index(es):
Relevant Pages
|