16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

94<br />

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

From the SQL Outline or through the Java Editor, take advantage of ODS integration with<br />

Optim Query Tuner (OQT) to get expert advise on improving your queries and database<br />

design through its easy-to-use advisors.<br />

5.2 Identify the time and frequency of execution and cost of a<br />

statement<br />

Though the SQL Outline, you can drill down and see the performance metrics for any SQL<br />

statement that was executed providing you with information to quickly and easily identify<br />

the statements that would need to be optimized.<br />

Note:<br />

You can view performance metrics for applications that use the <strong>pureQuery</strong> API—methodstyle<br />

or inline-style, as well as JDBC, Hibernate or JPA applications.<br />

The performance metrics provide you information such as:<br />

• Number of times the SQL ran<br />

• Total execution time—adds the time for each run of the same SQL<br />

• Longest time the SQL took to run<br />

• Average of time that the SQL took to run<br />

• Minimum time the SQL took to run<br />

5.2.1 Gathering and viewing performance metrics<br />

To view the performance metrics when executing your Java application, you must run your<br />

application under the PureQuery configuration and not as a regular Java Application.

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

Saved successfully!

Ooh no, something went wrong!