Generating revision recommendations for single queries
You can choose to generate revision recommendations for selected SQL statements that reside on a connected Db2® for z/OS® subsystem, using options found in the IBM® Db2 Query Workload Tuner for z/OS tuning wizard.
About this task
The query revision tuning option looks for opportunities in a query to make the following
improvements:
- Minimize the number of index pages and data rows that have to be read. For example, you can minimize the number of rows read by having predicates in the query that can determine the needed rows from just the index alone.
- Minimize sort operations. For example, it determines whether ORDER BY or GROUP BY clauses are needed in the query, or if sort operations can be resolved through index access.