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.

time in second<br />

500<br />

450<br />

400<br />

350<br />

300<br />

250<br />

200<br />

150<br />

100<br />

50<br />

0<br />

6.2.2 Conclusion<br />

Figure 6-4 LOAD with default SORTKEYS<br />

In V8, SORT parameters are always en<strong>for</strong>ced, this provides per<strong>for</strong>mance improvement<br />

because of shorter I/O in index key sort and parallel index build. However, if the index keys<br />

are already sorted in perfect order or there is only one index in the table space, SORTKEYS<br />

does not provide much advantage.<br />

6.2.3 Recommendations<br />

LOAD with default SORTKEYS per<strong>for</strong>mance<br />

V7 one index V8 one index V7 2 indexes V8 2 indexes V7 6 indexes V8 6 indexes<br />

CPU Elapsed time<br />

You take advantage of the high per<strong>for</strong>mance of SORT parameters, if more than one index<br />

exists in a table space.<br />

To improve SORT per<strong>for</strong>mance during LOAD, you can also specify the appropriate value in<br />

the SORTKEYS option. The SORTKEYS option is an estimate of the number of keys <strong>for</strong> the<br />

job to sort, so that the index keys are passed in memory and avoid I/Os to the work file. To<br />

read how to estimate the number of keys, refer to topic Improved per<strong>for</strong>mance with<br />

SORTKEYS in <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Utility Guide and Reference, SC18-7427.<br />

Also you should not specify sort work data set like SORTWKxx DD statements, while using<br />

SORTKEY, make sure <strong>DB2</strong> uses memory instead of sort work data sets.<br />

See the in<strong>for</strong>mational APAR II14047 <strong>for</strong> useful in<strong>for</strong>mation on the changes of using DFSORT<br />

by <strong>DB2</strong> V8 utilities.<br />

Note: With PTF UK03983 <strong>for</strong> APAR PK04076, LOAD sort is avoided <strong>for</strong> LOAD SHRLEVEL<br />

NONE if data is sorted and only one index exists.<br />

Chapter 6. Utilities 269

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

Saved successfully!

Ooh no, something went wrong!