Optimize a user-defined routine

The query optimizer decides how to perform a query. A query plan is a specific way a query might be performed. A query plan includes how to access the table or tables included in the query, the order of joining tables, and the use of temporary tables. The query optimizer finds all feasible query plans. The optimizer estimates the cost to run each plan and then selects the plan with the lowest cost estimate.
Tip: For more information about query optimization, refer to the HCL OneDB™ Performance Guide.