16 Dec
2005
16 Dec
'05
3:53 p.m.
Mick Hollins wrote:
The approach I use is to use Berkeley DB for transactional persistence of each element/object in the database, and boost::serialization for converting C++ objects to and from the array of bytes that is required by Berkeley DB. That is, I serialize at the granularity of individuals objects in the database, rather than serializing the whole database contents in one go.
Thanks, sounds like an excellent approach. I guess the only downside is that boost::serialization can't detect duplicates between elements, but I would imagine most implementations are unlikely to have many of those.