FLUSH QUERY LOGGING Statement | Teradata Vantage - FLUSH QUERY LOGGING Advantages - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

The FLUSH QUERY LOGGING statement provides some advantages over BEGIN QUERY LOGGING and END QUERY LOGGING statements. The FLUSH QUERY LOGGING statement enables you to flush the various DBQL and TDWM caches at any time. You can submit a FLUSH QUERY LOGGING statement and specify whichever options you choose, and the result is a synchronous flushing of the specified caches.

FLUSH QUERY LOGGING also provides the advantage of flushing selected caches, which you cannot do by specifying periodic BEGIN QUERY LOGGING and END QUERY LOGGING requests. FLUSH QUERY LOGGING also enables you to flush TDWM caches, which can otherwise only be flushed by the database when its timer tells it to do so.