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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

In <strong>DB2</strong> V8 SQL/XML publishing functions become available. Storing and shredding or<br />

decomposing XML documents is still only provided in the XML extender. As an example we<br />

present in Figure 7-19 the results of shredding an XML document as a function of the<br />

document size with the XML extender.<br />

Time in second<br />

Figure 7-19 XML extender decomposition<br />

Decomposing an XML document into 3 tables of 20 columns on a z990 system takes 10 to 40<br />

seconds <strong>for</strong> document sizes ranging from 1 to 6 MB.<br />

7.5.2 XML publishing functions<br />

<strong>DB2</strong> V8 now provides seven new built-in XML publishing functions to help with XML<br />

document composition from <strong>DB2</strong> data.<br />

Description<br />

The XML publishing functions are built-in <strong>DB2</strong> functions. They run inside the <strong>DB2</strong> address<br />

spaces, unlike external User Defined Functions (UDFs), <strong>for</strong> example from the XML extender,<br />

that run in a WLM managed address space outside of <strong>DB2</strong>. The fact that the XML publishing<br />

functions are built into the <strong>DB2</strong> engine gives them better per<strong>for</strong>mance.<br />

XML data type<br />

An XML data type is an internal representation of XML, and can be used only as input to<br />

built-in functions that accept this data type as input. XML is a transient data type that cannot<br />

be stored in the database or returned to an application. Transient means that this data type<br />

only exists during query processing. There is no persistent data of this type and it is not an<br />

external data type that can be declared in application programs. In other words, the XML data<br />

type cannot be stored in a database or returned to an application.<br />

Valid values <strong>for</strong> the XML data type include the following:<br />

► An element<br />

► A <strong>for</strong>est of elements<br />

► The textual content of an element<br />

► An empty XML value<br />

308 <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><br />

50<br />

40<br />

30<br />

20<br />

10<br />

0<br />

XML Extender - Decomposition<br />

Decomposition by doc size<br />

z/<strong>OS</strong><br />

0 1 2 3 4 5 6 7<br />

Doc size (MBytes)

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

Saved successfully!

Ooh no, something went wrong!