Re: [bdbxml] Syncing containers to disk
John Snelson <[email protected]> Wed, 21 Sep 2005 11:46:22 +0100
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Thomas Schmidt wrote: > Hi, > as we are developing a multithreaded server application, > an instance of XmlManager and instances of the open > containers are shared by all threads over the applications lifetime. > Calling container.sync() seems not to flush the container's content to > disk. > What is the recommended procedure in this case? > We don't want to risk data loss if our application crashes after running > one week > for example. Using the XmlContainer::sync() method does not guarentee against loss of data. The only way to that is to use transactions and logging. Then in the event of an application failure, the database must be recovered. http://www.sleepycat.com/docs/ref/transapp/put.html http://www.sleepycat.com/docs/ref/transapp/reclimit.html John -- John Snelson, Berkeley DB XML Engineer Sleepycat Software, Inc http://www.sleepycat.com Contracted to Sleepycat through Parthenon Computing Ltd http://blog.parthcomp.com/dbxml ------------------------------------------ To remove yourself from this list, send an email to [email protected]