Improving XML Query Performance - Analytics Database - Teradata Vantage

Teradata Vantage™ - XML Data Type - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-01-27
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
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.