XmlQueryContext::setEvaluationType

#include <DbXml.hpp>

void XmlQueryContext::setEvaluationType(EvaluationType type);

Allows the application to set the query evaluation type to "eager" or "lazy". Eager evaluation means that the whole query is executed and its resultant values derived and stored in-memory before evaluation of the query is completed. Lazy evaluation means that minimal processing is performed before the query is completed, and the remaining processing is deferred until the result set is enumerated. As each call to XmlResults::next is called the next resultant value is determined.

Parameters

type

The evaluation type must be specified as either:

  • XmlQueryContext::Eager

    The query is executed and its resultant values are derived and stored in-memory before evaluation of the query is completed.

  • XmlQueryContext::Lazy

    Minimal processing is performed before evaluation of the query is completed, and the remaining processing is deferred until the result set is enumerated.

Class

XmlQueryContext

See Also

XmlQueryContext Methods