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
Select Report | Optimized SQL to open the Optimized SQL Report Criteria window.
Select the components for the report.
Click OK to generate the report.
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 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.
The Run Result function retrieves the queried records from the connected database.
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.
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
Click to optimize the original SQL statement. The rewritten SQL versions display as alternatives in the Run Time pane..
Click Test for Scalability .
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
Right-click and select Create Benchmark Factory Import File.
Select the specific SQL statements that you want to save. Click OK.
Enter the filename and select the file location. Click Save.
© ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center