Skip to content

TTL of system.queries #22732

Answered by hashhar
ruests asked this question in Q&A
Discussion options

You must be logged in to vote

https://trino.io/docs/current/admin/properties-query-management.html#query-max-history and https://trino.io/docs/current/admin/properties-query-management.html#query-min-expire-age control this.

Note that having a very large value for the history means many more objects are retained in coordinator memory leading to high memory utilisation on coordinator.

If you want a persistent query history consider using or writing an EventListener implementation - Trino ships with two - MySQL and HTTP Event Listeners.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hashhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants