
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Is there a way to force writing data to disk instead of writing it just to some cache?
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__ --> |