Strategy functions
Strategy functions are user-defined functions that can be used in queries to select data. Registering them as strategy functions with the CREATE OPCLASS statement lets the optimizer know that an associated R-tree index can be used to execute a query that contains one of those functions.
For example, assume there is an R-tree index on a column called boxes,
and Overlap is defined as a strategy function.
If a query contains the qualification WHERE Overlap (boxes,
region)
, the query optimizer considers using the R-tree index
to evaluate the query.
- Overlap
- Equal
- Contains
- Within
You must list these functions first, in the order shown, when you execute the CREATE OPCLASS statement to register the operator class with the database server. This SQL statement is described in Syntax for creating a new operator class.