To set intelligence options
Click in the main menu.
Select Optimize SQL | SQL Rewrite | Intelligence.
Select whether to use custom or predefined intelligence levels. If you select predefined, the levels range as follows:
Enables the following options in the Optimizer options pages:
Optimization Page
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [50]
MAXDOP Quota = [0]
Hints Quota Ratio (%) = [50]
Table Join Permutation Quota = [50]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [100]
MAXDOP Quota = [10]
Hints Quota Ratio (%) = [55]
Table Join Permutation Quota = [200]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, OPTIMIZE FOR]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [300]
MAXDOP Quota = [50]
Hints Quota Ratio (%) = [60]
Table Join Permutation Quota = [300]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 3]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [500]
MAXDOP Quota = [100]
Hints Quota Ratio (%) = [70]
Table Join Permutation Quota = [400]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 5]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FAST = 20, FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parellel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [1000]
MAXDOP Quota = [200]
Hints Quota Ratio (%) = [80]
Table Join Permutation Quota = [500]
Note: The Result Options page is adjusted independent of the optimization intelligence level.
To set intelligence options
Click in the main menu.
Select Optimize SQL | SQL Rewrite | Intelligence.
Select whether to use custom or predefined intelligence levels. If you select predefined, the levels range as follows:
Enables the following options in the Optimizer options pages:
Optimization Page
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [50]
MAXDOP Quota = [0]
Hints Quota Ratio (%) = [50]
Table Join Permutation Quota = [50]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [100]
MAXDOP Quota = [10]
Hints Quota Ratio (%) = [55]
Table Join Permutation Quota = [200]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, OPTIMIZE FOR]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [300]
MAXDOP Quota = [50]
Hints Quota Ratio (%) = [60]
Table Join Permutation Quota = [300]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 3]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [500]
MAXDOP Quota = [100]
Hints Quota Ratio (%) = [70]
Table Join Permutation Quota = [400]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 5]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FAST = 20, FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parellel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [1000]
MAXDOP Quota = [200]
Hints Quota Ratio (%) = [80]
Table Join Permutation Quota = [500]
Note: The Result Options page is adjusted independent of the optimization intelligence level.
To set intelligence options
Click in the main menu.
Select Optimize SQL | SQL Rewrite | Intelligence.
Select whether to use custom or predefined intelligence levels. If you select predefined, the levels range as follows:
Enables the following options in the Optimizer options pages:
Optimization Page
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [50]
MAXDOP Quota = [0]
Hints Quota Ratio (%) = [50]
Table Join Permutation Quota = [50]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [100]
MAXDOP Quota = [10]
Hints Quota Ratio (%) = [55]
Table Join Permutation Quota = [200]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Transform view to derived table [Transformation level = 2]
Transform query to derived table
Rewrite SQL using the same JOIN syntax as the source SQL
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, OPTIMIZE FOR]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [300]
MAXDOP Quota = [50]
Hints Quota Ratio (%) = [60]
Table Join Permutation Quota = [300]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 3]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parallel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [500]
MAXDOP Quota = [100]
Hints Quota Ratio (%) = [70]
Table Join Permutation Quota = [400]
Enables the following options in the Optimizer options pages:
Optimization Page
Temp table generation
Apply selected hints to temp table SQL
Transform view to derived table [Transformation level = 5]
Transform query to derived table
Rewrite SQL with and without using the ANSI-92 JOIN syntax
Hints Page
Group = [HASH GROUP, ORDER GROUP]
Join = [LOOP JOIN, HASH JOIN, MERGE JOIN]
Order hints = [FAST = 20, FORCE ORDER, ROBUST PLAN, OPTIMIZE FOR]
Union = [CONCAT UNION, HASH UNION, MERGE UNION]
Parellel hint = [MAXDOP]
Index hint = [INDEX]
Quota Page
Syntax Transformation Quota = [1000]
MAXDOP Quota = [200]
Hints Quota Ratio (%) = [80]
Table Join Permutation Quota = [500]
Note: The Result Options page is adjusted independent of the optimization intelligence level.
To set optimization options
Click in the main menu.
Review the following for additional information:
Temp Table | Description |
Temp table generation |
Select this checkbox to generate alternative SQL statements that use temporary tables. |
Apply selected hints to SQL statements that create temporary tables. |
Select this checkbox to apply selected hints to SQL statements that create temporary tables. |
View to derive table transformation | Description |
Transform view to derived table |
Select this checkbox to insert the view's SQL into the source SQL statement at each location that references the view. This results in a rewrite for the view SQL and original SQL statement. This is useful when you want to optimize a SQL statement that uses a poorly performing view. For example: Source SQL SELECT * FROM V_DEPT WHERE DPT_MANAGER = 'SMITH'
Alternative SQL SELECT * FROM (SELECT DPT_ID, DPT_MANAGER FROM DEPARTMENT) WHERE DPT_MANAGER = 'SMITH' |
Transformation level |
Enter the recursive level to transform views inside the subquery of a derived table. |
Query to derived table transformation | Description |
Transform query to derived table |
Select this checkbox to transform the query to a derived table (a subquery used as a table in a FROM clause). This transformation takes a source SQL statement with an IN or EXISTS clause and rewrites it as a derived table. For example: Source SQL SELECT
Alternative SQL SELECT |
Join Tables | Description |
Rewrite SQL |
Select one of the following:
|
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center