Skip to content

feat: disable described statement cache timeout by default#4409

Open
olavloite wants to merge 2 commits intopostgresql-dialectfrom
disable-auto-describe-cache-timeout
Open

feat: disable described statement cache timeout by default#4409
olavloite wants to merge 2 commits intopostgresql-dialectfrom
disable-auto-describe-cache-timeout

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

The timeout for the described statements cache was set to 30 minutes by default. This default is now set to Long.MAX_VALUE, as elements in this cache are (almost) never invalidated. They would only be invalidated if the data type of an existing column would change while the application is running, which is a very rare event. The added number of roundtrips that are added by invalidating elements in this cache once every 30 minutes does not weigh up against the tiny probability that any elements are actually invalid.

olavloite added 2 commits May 4, 2026 10:08
The timeout for the described statements cache was set to 30 minutes by default. This default
is now set to Long.MAX_VALUE, as elements in this cache are (almost) never invalidated. They
would only be invalidated if the data type of an existing column would change while the
application is running, which is a very rare event. The added number of roundtrips that are
added by invalidating elements in this cache once every 30 minutes does not weigh up against
the tiny probability that any elements are actually invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant