Javadoc
A
CompiledQuery is a
Query which has been compiled, typically
by the data source itself, to provide optimized execution speed. Compiled
queries are produced using the
DataContext#compileQuery(Query) method.
Typically the compilation itself takes a bit of time, but firing the compiled
query is faster than regular queries. This means that for repeated executions
of the same query, it is usually faster to use compiled queries.
To make
CompiledQuery useful for more than just one specific query,
variations of the query can be fired, as long as the variations can be
expressed as a
QueryParameter for instance in the WHERE clause of the
query.