logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [bdbxml] Syncing containers to disk: msg#00095

Subject: Re: [bdbxml] Syncing containers to disk
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 xml-unsubscribe-E1rGyZxLSgzby3iVrkZq2A@xxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>