19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.1.3 Data warehouse<br />

1.1.4 Per<strong>for</strong>mance<br />

data sets are requested above the 16 MB line. When those open data sets (or partitions)<br />

are compressed, the compression dictionary is loaded above the 2 GB bar.<br />

► More log data sets<br />

The maximum number of active log data sets per log copy is increased from 31 to 93. The<br />

maximum number of archive log volumes recorded in the BSDS is increased from 1,000 to<br />

10,000 per log copy. If this limit is exceeded, there is a wrap around, and the first entry<br />

gets overwritten .<br />

► CI size larger than 4 KB<br />

<strong>DB2</strong> V8 introduces support <strong>for</strong> CI sizes of 8, 16, and 32 KB. This is valid <strong>for</strong> user-defined<br />

and <strong>DB2</strong>-defined table spaces. The new CI sizes relieve some restrictions on backup,<br />

concurrent copy, and the use of striping, as well as provide the potential <strong>for</strong> reducing<br />

elapsed time <strong>for</strong> large table space scans.<br />

The most important enhancements specifically affecting the data warehouse applications are:<br />

► More tables in joins<br />

In <strong>DB2</strong> V7 the number of tables in the FROM clause of a SELECT statement can be 225<br />

<strong>for</strong> a star join. However, the number of tables that can be joined in other types of join is 15.<br />

<strong>DB2</strong> V8 allows 225 tables to be joined in all types of joins.<br />

► Sparse index and in-memory work files <strong>for</strong> star join<br />

The star join implementation in <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> potentially has to deal with a large<br />

number of work files, especially <strong>for</strong> a highly normalized star schema that can involve many<br />

snowflakes, and the cost of the sorting of these work files can be very expensive. <strong>DB2</strong> V8<br />

extends the use of a sparse index (a dynamically built index pointing to a range of values)<br />

to the star join work files and adds a new optional function of data caching on star join<br />

work files. The decision to use the sparse index is made based on the estimation of the<br />

cost of the access paths available.<br />

► Common table expression and recursive SQL<br />

<strong>DB2</strong> V8 introduces the common table expression and recursive SQL function, which<br />

extends the expressiveness of SQL and lets users derive the query result through<br />

recursion. It is also a convenient way <strong>for</strong> users to express complex queries, since using<br />

common table expressions instead of views saves both users and the system the work of<br />

creating and dropping views.<br />

► Materialized query tables<br />

This enhancement provides a set of functions that allows <strong>DB2</strong> applications to define,<br />

populate, and make use of materialized query tables. Large data warehouses definitely<br />

benefit from MQTs <strong>for</strong> queries against objects in an operational data store.<br />

However several other changes to improve optimization techniques, improve statistics <strong>for</strong><br />

optimization, and better analysis of the access path, listed under per<strong>for</strong>mance, also benefit<br />

warehousing applications. Even more additions that add to warehousing applications are<br />

enhancements to the ability to use indexes, the new DSTATS option of RUNSTATS, the new<br />

Visual Explain, and the online schema changes.<br />

The main <strong>DB2</strong> V8 improvements related to per<strong>for</strong>mance are:<br />

► Multi-row INSERT and FETCH<br />

6 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!