InitLockObjectCount 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
LockingConfig..::.InitLockObjectCount Property
LockingConfig Class See Also Send Feedback

The initial number of lock objects created by the Berkeley DB environment

Namespace: BerkeleyDB
Assembly: libdb_dotnet60 (in libdb_dotnet60.dll) Version: 6.0.30.0

# Syntax

C#
    public uint InitLockObjectCount { get; set; }

Visual Basic (Declaration)
    Public Property InitLockObjectCount As UInteger

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

# Remarks

This value is used by Open(String, DatabaseEnvironmentConfig) to force Berkeley DB to allocate a certain number of lock objects when the environment is created. This can be useful if an application uses a large number of lock objects, and experiences performance issues with the default dynamic allocation algorithm.

If the database environment already exists when Open(String, DatabaseEnvironmentConfig) is called, the value of InitLockObjects will be ignored.

# See Also

LockingConfig Class
BerkeleyDB Namespace