Avoid Deadlocks Using Volatile Tables | Teradata Vantage - Avoid Deadlocks Using Volatile Tables - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

When you use the CREATE TABLE syntax to directly save the function results, and if multiple such queries are running concurrently, deadlocks may occur due to the locks on the dictionary tables that get updated with the metadata of the new tables.

In this case, you must use VOLATILE tables rather than permanent tables to avoid dictionary locks. You can view the results in the VOLATILE tables and make a separate CREATE TABLE SQL call to store the results in a permanent table.