Set the number of buckets in the lock object hash table in the Berkeley DB environment.

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


public uint TableSize { get; set; }
Visual Basic (Declaration)
Public Property TableSize As UInteger
Visual C++
property unsigned int TableSize {
	unsigned int get ();
	void set (unsigned int value);


The table is generally set to be close to the number of lock objects in the system to avoid collisions and delays in processing of lock operations.

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

See Also