MODEL Performance Tuning

Dimensions

In this topic we see how the number of dimensions affects session memory. In each of the following tests one measures is defined and no rules are used. The number of dimensions varies from one test to the next.

Tests

Non-MODEL
Query:

select  'x' as x from t_100k ;

Test Complete
 
1 Dimension:

select x from t_100k
model dimension by( key_1 ) measures( 'x' as x ) () ;

Test Complete
 
2 Dimensions:

select x from t_100k
model dimension by( key_1, key_2 ) measures( 'x' as x ) () ;

Test Complete
 
3 Dimensions:

select x from t_100k
model dimension by( key_1, key_2, key_3 ) measures( 'x' as x ) () ;

Test Complete
 

Results


                           Non-MODEL
Metric                     Query     1 Dimension 2 Dimensions 3 Dimensions
-------------------------- --------- ----------- ------------ ------------
session pga memory max (K) 256       12,160      23,936       33,024
session uga memory max (K) 248       11,877      23,266       32,028

See Statistics Descriptions and Latches and Internal Locks for metric descriptions.
 

Observations

Session memory increased as the number of dimensions increased, even though no rules were defined.

Warning: Results on your own systems with your own data will differ from these results. Results will even differ from one set of test runs to the next on the same machine. Run your own tests and ave rage the results from multiple runs before making performance decisions.




Linking to SQL Snippets ™

To link to this page in Oracle Technology Network Forums or OraFAQ Forums cut and paste this code.

  • [url=http://www.sqlsnippets.com/en/topic-12227.html]SQL Snippets: MODEL Performance Tuning - Dimensions[/url]

To link to this page in HTML documents or Blogger comments cut and paste this code.

  • <a href="http://www.sqlsnippets.com/en/topic-12227.html">SQL Snippets: MODEL Performance Tuning - Dimensions</a>

To link to this page in other web sites use the following values.

  • Link Text : SQL Snippets: MODEL Performance Tuning - Dimensions
  • URL (href): http://www.sqlsnippets.com/en/topic-12227.html