Processing queries: Overview

 

This overview of the query optimizer provides guidelines for designing queries that will perform and will use server resources more efficiently. This overview covers queries that are optimized by the query optimizer and includes interfaces such as SQL, OPNQRYF, APIs (QQQQRY), ODBC, and Query/400 queries. Whether you apply the guidelines, the query results will still be correct.

The information in this overview is complex. You might find it helpful to experiment with an iSeries™ server as you read this information to gain a better understanding of the concepts.

When you understand how DB2 Universal Database™ for iSeries processes queries, it is easier to understand the performance impacts of the guidelines discussed in this overview. There are two major components of DB2 Universal Database for iSeries query processing:

 

Parent topic:

Performance and query optimization