Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Berkeley-DB too fast



[EMAIL PROTECTED] wrote:

Is there a way to force writing data to disk instead of writing it just to
some cache?


Matthias,


So long as you specified DB_INIT_LOG and did not set the DB_TXN_NOSYNC or
DB_TXN_WRITE_NOSYNC flags transactions are committed to disk before
txn->commit() returns.  If your measurement was of the average commit
time of many concurrent transactions then you are probably seeing the
effect of our group commit logic which commits several transactions
in 1 write to the log.  Note also that if a transaction does not perform
any updates then txn->commit() will not write any log records.

Michael Ubell
Sleepycat Software.




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.