XTSOFT Team provides free service to optimize your DB2 statements

SQL-TUNE


Optimize the response time

Performance problems, which are relatively frequent in the environment of relational databases, are mostly due to the actual writing of the SQL orders.
In order to optimize response time, it is important almost systematically to modify the input.

To write top quality requests, the programmer must ask three questions :

SQL-TUNE provides the right answers to these three questions !


WHO?

Which SQL request gives an unsatisfactory response time ?

SQL-TUNE gives statistics concerning each request (static or dynamic orders). This allows you to identify quickly the SQL order which has an unsatisfactory response time.

SQL-TUNE displays for each query :



This query can be displayed (using function key PF5) and then processed 'On-Line'.

SQL-TUNE has given an accurate reply to the question WHO.



Location of queries.

zoom

The most expensive queries are quickly localized
and displayed using the PF5 function key :


zoom


 
WHY?

Why is the response time to the query unsatisfactory ?

The SQL-TUNE response is the display of the access path used by SQL.
If you want to know exactly why SQL has chosen this access path, position the cursor on the accessed table and you will see all the characteristics of this table :


SQL-TUNE has given a precise answer to the question WHY.



Display of Access Path :

zoom

In this example, SQL-TUNE indicates
that the query has induced a scan on a
table of several thousand rows,
which explains the response time.


 
HOW?

How to improve this order ?

The SQL-TUNE response is a simulation.
In fact, the programmer can return to the screen displaying the order, modify it and ask SQL-TUNE "What would be the access path if I wrote my order like this".




click here

The initial order can be modified :


click here

Then display of new access path :


click here

Thus, after successive attempts, SQL-TUNE
is able to write a query which
has optimum access.