XmlContainerConfig::setStatistics

#include <DbXml.hpp>

void XmlContainerConfig::setStatistics(
        XmlContainerConfig::ConfigState state) 

Sets whether structural statistics are stored in the container. These statisitics are used in query optimization. The default setting is UseDefault and the default is to use statistics. This value is ignored unless the container is being created or reindexed.

Structural statistics information is very useful for cost based query optimisation. Containers created with these statistics will take slightly longer to load and update, since the statistics must also be updated. In addition the statistics affect the concurrent behavior in the face of updates.

If the state is set to Off then the container is created without structural statistics. If the state is set to On or UseDefault the container is created with structural statistics.

Parameters

state

Whether the container includes structural statistics. The container property must have one of the following values:

  • XmlContainerConfig::On

    The container property is turned on.

  • XmlContainerConfig::Off

    The container property is turned off.

  • XmlContainerConfig::UseDefaults

    The container property is set to whatever the default is for the given container type.

Class

XmlContainerConfig

See Also

XmlContainerConfig Methods