1
<!--$Id: config.so,v 10.17 2001/05/22 01:44:41 bostic Exp $-->
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
6
<title>Berkeley DB Reference Guide: Configuring transactions</title>
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
11
<a name="2"><!--meow--></a>
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Transaction Subsystem</dl></h3></td>
14
<td align=right><a href="../../ref/txn/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/txn/limits.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Configuring transactions</h1>
18
<p>There is only a single parameter used in configuring transactions; the
19
<a href="../../api_c/env_open.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a> flag. Setting the <a href="../../api_c/env_open.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a> flag to
20
<a href="../../api_c/env_set_flags.html">DB_ENV->set_flags</a> when opening a transaction region changes the
21
behavior of transactions to not synchronously flush the log during
23
<p>This change will significantly increase application transactional
24
throughput. However, it means that although transactions will continue
25
to exhibit the ACI (atomicity, consistency, and isolation) properties,
26
they will not have D (durability). Database integrity will be
27
maintained, but it is possible that some number of the most recently
28
committed transactions may be undone during recovery instead of being
30
<p>The application may also change the number of simultaneous outstanding
31
transactions supported by the Berkeley DB environment by calling the
32
<a href="../../api_c/env_set_tx_max.html">DB_ENV->set_tx_max</a> function. When this number is reached, additional
33
calls to <a href="../../api_c/txn_begin.html">txn_begin</a> will fail until some active transactions
35
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/txn/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/txn/limits.html"><img src="../../images/next.gif" alt="Next"></a>
37
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>