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.

Chapter 4 – <strong>pureQuery</strong> tooling views 85<br />

Figure 4.11 - <strong>pureQuery</strong>XML editor<br />

If you notice a statement that is not very efficient, you may want to replace it with a more<br />

optimal one. However, you may not have the source code to change this statement or the<br />

change may be considered too risky.<br />

For example, you may want to change a statement to take advantage of a newly added<br />

index, to limit the number of rows returned or simply to add an ORDER BY clause. With the<br />

<strong>pureQuery</strong>XML editor, you can edit the statement by providing an alterative one that is<br />

equivalent but better in performance. This alternative statement will now be executed and<br />

included in your database package when you execute the bind operation, as shown in<br />

Figure 4.12. For further details refer to the ODS build-in documentation or refer to the<br />

article at https://www.ibm.com/developerworks/data/library/techarticle/dm-0812surange/<br />

Figure 4.12 - <strong>pureQuery</strong>XML editor—providing a more optimal statement

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

Saved successfully!

Ooh no, something went wrong!