MaxTransactions Property

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 Send Feedback

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_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.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 in the extreme case a transaction for each page in cache.

When all of the memory available in the database environment for transactions is in use, calls to BeginTransaction()()() 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