The initial number of locks created by the Berkeley DB environment

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version: 5.2.28.0

Syntax

C#
public uint InitLockCount { get; set; }
Visual Basic (Declaration)
Public Property InitLockCount As UInteger
Visual C++
public:
property unsigned int InitLockCount {
	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 locks when the environment is created. This can be useful if an application uses a large number of locks, 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 InitLocks will be ignored.

See Also