Chat now with support
Chat mit Support

SQL Optimizer for DB2 LUW 4.4.2 - User Guide

SQL Optimizer for IBM® DB2® LUW
UsageStatistics Getting Started Options SQL Scanner SQL Optimizer SQL Formatter SQL Inspector Database Explorer SQL Repository Index Impact Analyzer Index Usage Analyzer User-Defined Temp Table Editor Functions SQL Functions SQL Information and Functions Activity Log
Tutorials About us Copyright

Generate a Report for Optimized SQL

The details of the SQL and index-set alternatives and their run-time results can be generated into a report.

To generate the Optimized SQL Report

  1. Select Report | Optimized SQL to open the Optimized SQL Report Criteria window.

  2. Select the components for the report.

  3. Click OK to generate the report.

  4. The information in the report can be Saved and Printed.

Note: A few minutes may be needed to generate a long report.

 

 

Verify the Correctness of Rewritten SQL

Verify the correctness of the rewritten SQL statement by comparing it with the original SQL statement. Use the Run Result function and the Records Returned column of the Run Time pane. This information enables you to see whether the optimized SQL statement provides the same results as the original SQL statement.

Note: The Run Result function is not available for index-set alternatives listed in the Run Time pane.

Run Result

The Run Result function retrieves the queried records from the connected database.

Records Returned

The Records Returned columns display the number of records influenced by the SQL statement. The figure should remain constant for both the original and optimized SQL statements.

 

Test for Scalability

You can test a single SQL or index-set alternative to find out how it will perform under different amounts of data in your database in Quest's Benchmark Factory program (version 4.6 or later).

To send SQL statement to Benchmark Factory

  1. Click to optimize the original SQL statement. The rewritten SQL versions display as alternatives in the Run Time pane..

  2. Click to generate virtual index sets and add them as alternatives.
  3. Click Test for Scalability image\B_TestForScalability.gif.

  4. Select the alternative you want to test.

 

Create Benchmark Factory Import File

All the SQL statements can be saved in a text file from the Job Manager, the Scanned SQL Viewer, the SQL Repository, and the SQL Optimizer windows. These SQL statements can then be imported into Benchmark Factory program (version 4.6 or later).

To create the text file to import into Benchmark Factory

  1. Right-click and select Create Benchmark Factory Import File.

  2. Select the specific SQL statements that you want to save. Click OK.

  3. Enter the filename and select the file location. Click Save.

 

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen