From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-07-16 11:22:37


ari vol wrote:

> The problem with this solution is that it is time consuming, to open
> file for a key, i would like to use the boost serializeation to improve
> time preformance.
>
> What is realy required is some mechanism, to identify an instance
> according to its key and only than read its data. Thus reading only the
> required instnace (accordig to its key) and not also the previous data
> at the file, someting like seek.

It sounds as though you're describing a database. Try storing your
serialized output into a row of a database, with the key of interest.