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_dotnet62 (in libdb_dotnet62.dll) Version: 6.2.32.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 the "Selecting a page size" section in the Programmer's Reference Guide.

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

# See Also

DatabaseConfig Class
BerkeleyDB Namespace