16.10.2015 Views

Getting Startedwith pureQuery

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

98<br />

<strong>Getting</strong> Started with <strong>pureQuery</strong><br />

• bind you application to use static SQL<br />

• enable literal replacement with parameters during the capture process<br />

• use the Optim Query Tuner to give you advice on improving your queries or<br />

database design.<br />

To replace a poorly performing statement with an optimized one, to use static SQL or both,<br />

refer to Chapter 4.<br />

5.3.1 Optimize your applications by using Optim Query Tuner<br />

DBA’s are frequently more interested in fine tuning SQL statements than developers are.<br />

However, if this task could be made easier, developers could take certain steps to try to<br />

improve application performance during the development stage to avoid expensive or risky<br />

changes during the production stage. With Optim Query Tuner (OQT), you can easily get<br />

advice on writing more efficient SQL or get enough information to ask for new indexes or<br />

statistics from the database administrator.<br />

Note:<br />

For more information on this topic, refer to the Developer Works article at<br />

https://www.ibm.com/developerworks/data/library/techarticle/dm-0906optimdeveloper/ or<br />

the article SQL Tuning on the IBM Data Management Magazine, Issue 2, 2009 pp. 22-25.<br />

Optim Query Tuner is a separate product that integrates with ODS and can be launched<br />

from either of the following places by selecting the Open Query Tuner menu:<br />

• right-click on a SQL statement in the Java Editor<br />

• right-click on a SQL statement in the SQL Outline<br />

• right-click on a SQL statement in the <strong>pureQuery</strong>XML Editor<br />

To launch OQT, right-click on the SQL statement which took the maximum time to<br />

execute—Figure 14.4—and choose Open Query Tuner from the context menu.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!