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.

There are restrictions <strong>for</strong> the use of the XML data type:<br />

► A query result cannot contain this data type<br />

► Columns of a view cannot contain this data type<br />

► XML data cannot be used in SORT, that is GROUP BY or ORDER BY and predicates<br />

► The XML data type is not compatible with any other data type<br />

The only supported operation is to serialize (by using the XML2CLOB function) the XML value<br />

into a string that is stored as a CLOB value.<br />

XML publishing functions<br />

The new publishing functions are:<br />

► XML2CLOB<br />

The XLM2CLOB function returns a CLOB representation of an XML value.<br />

► XMLELEMENT<br />

The XMLELEMENT function returns an XML element from one or more arguments.<br />

► XMLATTRIBUTES<br />

This function constructs XML attributes from the arguments.<br />

► XMLFOREST<br />

The XMLFOREST function returns a bunch of XML elements that all share a specific<br />

pattern from a list of expressions.<br />

► XMLCONCAT<br />

The XMLCONCAT function returns a concatenation of XML elements that are generated<br />

from a concatenation of two or more arguments.<br />

► XMLAGG<br />

The XMLAGG function returns an aggregation of XML elements from a collection of XML<br />

elements.<br />

► XMLNAMESPACES<br />

The function XMLNAMESPACES returns the declaration of XML namespaces.<br />

For a detailed description of the new XML publishing functions, see XML <strong>for</strong> <strong>DB2</strong> In<strong>for</strong>mation<br />

Integration, SG24-6994.<br />

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

In this section we present the XML per<strong>for</strong>mance measurements.<br />

Per<strong>for</strong>mance measurement description<br />

In this measurement we used:<br />

► <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V8<br />

► z/<strong>OS</strong> Release 1.4<br />

► XML extender V8<br />

► z990<br />

► ESS 800 DASD (with FICON channel)<br />

This measurement compares the per<strong>for</strong>mance of the XML built-in publishing functions to the<br />

equivalent RDB_NODE composition with the XML extender user defined functions. See<br />

Example 7-1 <strong>for</strong> the SQL used in this measurement.<br />

Example 7-1 XML publishing example<br />

Chapter 7. Networking and e-business 309

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

Saved successfully!

Ooh no, something went wrong!