~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/docs/ref/txn/config.html

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.-->
 
4
<html>
 
5
<head>
 
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++">
 
9
</head>
 
10
<body bgcolor=white>
 
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>
 
15
</td></tr></table>
 
16
<p>
 
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-&gt;set_flags</a> when opening a transaction region changes the
 
21
behavior of transactions to not synchronously flush the log during
 
22
transaction commit.
 
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
 
29
redone.
 
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-&gt;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
 
34
complete.
 
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>
 
36
</td></tr></table>
 
37
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
 
38
</body>
 
39
</html>