One way to execute UDRs is in an expression in a query. You can take advantage of parallel execution if the UDR is in an expression in one of the following parts of a query:
For example, suppose you create an opaque data type circle, a table cir_t that defines a column of type circle, a user-defined routine area, and then execute the following sample query:
SELECT circle, area(circle) FROM cir_t WHERE circle > "(6,2,4)";
In this sample query, the following operations can execute in parallel:
If the table cir_t is fragmented, multiple area UDRs can execute in parallel, one UDR on each fragment.
If the table cir_t is fragmented, multiple scans of the table can execute in parallel, one scan on each fragment. Then multiple ">" comparison operators can execute in parallel, one operator per fragment.
By default, a UDR does not execute in parallel. To enable parallel execution of UDRs, you must take the following actions:
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]