Improving XML Query Performance - Teradata Vantage - Analytics Database

XML Data Type

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
lifecycle
latest
Product Category
Teradata Vantageā„¢

XML type columns cannot be part of an index. However, if the XML type is a non-LOB 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.