Performance impact of refreshOidMap query in high-schema environments #17944
Unanswered
AndreLorenz
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Situation
We're experiencing performance challenges with the automatic
refreshOidMapquery that executes on every PostgreSQL connection. I'd like to hear from the community if others have faced similar issues and how they've approached it.Our environment:
refreshOidMapquery takes several seconds due to scanning all types across all schemas🔍 The Query in Question
Currently, this query runs on every connection inside
PostgresConnectionManager.#refreshOidMap():This scans all PostgreSQL types system-wide, regardless of actual usage.
📊 Performance Impact Snapshot
🧠 Real Impact (
pg_stat_statementsTop Queries)WITH ranges AS (SELECT pg_range.rngtypid ...)SELECT ... FROM appointments ...SELECT ... FROM appointments ...SELECT ... FROM appointments ...SELECT ... FROM appointments ...❓ Open Questions for the Community
refreshOidMapin large multi-schema or serverless environments?Thanks in advance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions