Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironment..::.MaxTransactions Property
DatabaseEnvironment Class See Also

The number of active transactions supported by the environment. This value bounds the size of the memory allocated for transactions. Child transactions are counted as active until they either commit or abort.

Namespace: BerkeleyDB
Assembly: libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

# Syntax

C#
    public uint MaxTransactions { get; set; }

Visual Basic (Declaration)
    Public Property MaxTransactions As UInteger

Visual C++
    public:
    property unsigned int MaxTransactions {
    	unsigned int get ();
    	void set (unsigned int value);
    }

# Remarks

Transactions that update multiversion databases are not freed until the last page version that the transaction created is flushed from cache. This means that applications using multi-version concurrency control may need a transaction for each page in cache, in the extreme case.

When all of the memory available in the database environment for transactions is in use, calls to BeginTransaction()()() will fail (until some active transactions complete). If MaxTransactions is never set, the database environment is configured to support at least 100 active transactions.

# See Also

DatabaseEnvironment Class
BerkeleyDB Namespace