XmlManager::setDefaultPageSize

API Ref

#include <DbXml.hpp>

void XmlManager::setDefaultPageSize(u_int32_t pageSize)

u_int32_t XmlManager::getDefaultPageSize()


Description: XmlManager::setDefaultPageSize

The XmlManager::setDefaultPageSize method sets the size of the pages used to store documents in the database. The size is specified in bytes in the range 512 bytes to 64K bytes. The system selects a page size based on the underlying file system I/O block size if one is not explicitly set by the application. The default page size has a lower limit of 512 bytes and an upper limit of 16K bytes. Documents that are larger than a single page are stored on multiple pages.

The XmlManager::setDefaultPageSize method will only affect containers created after it is set. It has no effect on existing containers.

Parameters

pagesize
The page size in bytes.

Errors

The XmlManager::setDefaultPageSize method may fail and throw XmlException, encapsulating one of the following non-zero errors:

CONTAINER_OPEN
The page size may only be set for new containers.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.