Improving XML Query Performance - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ XML Data Type

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K

XML type columns cannot be part of an index. However, if the XML type is a nonLOB type, it can be part of a join index although it cannot be part of the primary index of the join index.

In addition, you can use the XMLEXTRACT method to extract paths or values of interest in the XML document structure to shred portions of the document into columns of other SQL data types that can be indexed. You can design your tables and queries to leverage this capability to restrict XML queries to rows of interest, thereby improving performance. You can also use the AS_SHRED_BATCH stored procedure to shred XML documents.