Skip to content

refactor: get rid of dbQueryTimings from SchemaCache#4966

Merged
steve-chavez merged 1 commit into
PostgREST:mainfrom
mkleczek:push-ynlswnvxuquq
May 31, 2026
Merged

refactor: get rid of dbQueryTimings from SchemaCache#4966
steve-chavez merged 1 commit into
PostgREST:mainfrom
mkleczek:push-ynlswnvxuquq

Conversation

@mkleczek
Copy link
Copy Markdown
Collaborator

@mkleczek mkleczek commented May 31, 2026

Schema cache query timings are only needed immediately after a schema-cache reload to emit SchemaCacheQueriedObs. Storing them inside SchemaCache makes the cache carry transient observability data that is not part of the cached schema state and is never used by request handling.

This change makes querySchemaCache to return query timings in a tuple in parallel to SchemaCache and removes dbQueryTimings field.

Schema cache query timings are only needed immediately after a schema-cache reload to emit SchemaCacheQueriedObs. Storing them inside SchemaCache makes the cache carry transient observability data that is not part of the cached schema state and is never used by request handling.

This change makes querySchemaCache to return query timings in a tuple in parallel to SchemaCache and removes dbQueryTimings field.
@steve-chavez steve-chavez merged commit 56ad5a9 into PostgREST:main May 31, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants