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

The size of the pages used to hold items in the database, in bytes.

Namespace: BerkeleyDB
Assembly: libdb_dotnet51 (in libdb_dotnet51.dll) Version: 5.1.22.0

# Syntax

C#
    public uint PageSize { get; set; }

Visual Basic (Declaration)
    Public Property PageSize As UInteger

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

# Remarks

The minimum page size is 512 bytes, the maximum page size is 64K bytes, and the page size must be a power-of-two. If the page size is not explicitly set, one is selected based on the underlying filesystem I/O block size. The automatically selected size has a lower limit of 512 bytes and an upper limit of 16K bytes.

For information on tuning the Berkeley DB page size, see Selecting a page size in the Programmer's Reference Guide.

If creating additional databases in a single physical file, this parameter will be ignored and the page size of the existing databases will be used.

# See Also

DatabaseConfig Class
BerkeleyDB Namespace