Use this page of the Options dialog to specify default index settings to be used in index generation for SQL Rewrite. Settings specified through the Options dialog apply to new SQL Rewrite sessions.
Settings specified through the Current Session dialog override the global settings and apply to the current session only. See Optimize SQL Statements for more information.
To set index type options
Click in the main menu.
Select Optimize SQL | Index Generation | Index Type.
Specify options for index type. Review the following for additional information:
Index Type |
Description |
B-Tree index |
Select to generate index alternatives that are B-Tree indexes. |
Bitmap index |
Select to generate index alternatives that are bitmap indexes. |
Parallel degree |
Select to generate index alternatives in parallel and enter a parallel degree. |
Key-Compressed for B-Tree index when selectivity is less than or equal to |
Select to key-compress a B-Tree index alternative when the selectivity of the data is less than or equal to the value you specify. |
Use this page of the Options dialog to specify a default Intelligence level to use for Plan Control. Settings specified through the Options dialog apply to new Plan Control sessions.
Settings specified through the Current Session dialog override the global settings and apply to the current session only. See Generate Execution Plan Alternatives for more information.
To set intelligence options
Click in the main menu.
Select Optimize SQL | Plan Control | Intelligence.
Select a method to use to specify the total quota.
Intelligence |
Select one of the following:
|
When you test run SQL, SQL Optimizer provides various options to allow you to customize the test-run behavior according to your environment and objectives. These options are presented in the Test Run Settings dialog that opens when you initiate the test-run process (for multiple SQL).
Note: The customized options are accessed when you click the Customize Test Run Settings link at the bottom of the Test Run Settings dialog.
Use this Test Run page in the Options dialog to specify default values for some of the custom test run options. If default values are specified, the Test Run Settings dialog opens with these values pre-populated.
To specify test-run options (default values)
Specify default values for one or more of the options listed. Review the following for additional information:
Default number of rows to retrieve |
Instead of retrieving all rows, you can instruct SQL Optimizer to retrieve the first N rows. Use this field to specify a default value. Purpose: This option is useful for simulating the performance of SQL which normally retrieves only a specific number of rows. |
Default threshold to run SQL for a second time |
If you select Dynamically determine the number of times to test run (running at most twice) in the Test Run Settings dialog (Run Time Retrieval Method tab), you can instruct SQL Optimizer to Run all SQL twice if original SQL runs faster than N seconds. Specify a default value for N here. If the run time of the original SQL is less than this threshold, the original SQL and all alternatives run twice, and the second run time is used. |
Test run SQL multiple times |
If you select Dynamically determine the number of times to test run (may run multiple times) in the Test Run Settings dialog (Run Time Retrieval Method tab), you can instruct SQL Optimizer to Run all SQL N times when original SQL is faster than N seconds Default number of times to test run SQL multiple times—Specify a default value for N (number of run times). Default threshold to test run SQL multiple times—Specify a default value for N (number of seconds). If the run time of the original SQL is less than this threshold, the original SQL and all alternatives run multiple times, and the average run time is used. |
Test Run Different Bind Values |
Specify defaults to use when testing SQL alternatives using different bind values. Default percentage of original SQL total run time—Specify a default value for this SQL termination option. This value is used in the Order and Termination tab of the Test Run Settings dialog. |
Ignore record count difference from original SQL |
Select this option if you want SQL Optimizer to ignore a record count mismatch between the alternative and the original SQL. No warning message is displayed in the Status column. Clear this check box to display a warning message when there is a record count mismatch. |
See Test Run Settings for more information about the options in the Test Run Settings dialog.
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center