DESIGNER_SET_ANALYZE_CORRELATIONS_MODE
Specifies how Database Designer handles column correlations in a design. A design's mode determines whether Database Designer analyzes or re-analyzes existing column correlations and considers them in the design that it creates.
The following recommendations apply:
- You typically need to analyze column correlations only once.
-
Analyze correlations when the table row count is at least
DBDCorrelationSampleRowCount
—by default, 4000.
Database Designer analyzes column correlations for a design only if you enable analysis with this function.
Behavior Type
Syntax
DESIGNER_SET_ANALYZE_CORRELATIONS_MODE ( 'design‑name', mode )
Parameters
design‑name | Name of the design that specifies how Database Designer handles correlated columns. | ||||||||
mode |
Specifies how to handle correlations in the design tables, one of the following integer settings:
Setting the correlation analysis mode does not affect whether Database Designer analyzes statistics when creating a design. |
Privileges
One of the following:
- Superuser
DBDUSER
role with USAGE privilege on the design schema.
Example
The following example specifies that Database Designer analyze all tables for correlated columns and consider them when creating a design:
=> SELECT DESIGNER_SET_ANALYZE_CORRELATIONS_MODE ('VMART_DESIGN', 3); DESIGNER_SET_ANALYZE_CORRELATIONS_MODE ---------------------------------------- 3 (1 row)