Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

When using managed databases, cache the query analysis if the query, schema and configuration file hasn't change. Also take into account the version of sqlc.

Analysis can only be cached for managed databases as we can't know if a connected database has been changed.

When using managed databases, cache the query analysis if the query,
schema and configuration file hasn't change. Also take into account the
version of sqlc.

Analysis can only be cached for managed databases as we can't know if a
connected database has been changed.
@kyleconroy kyleconroy marked this pull request as ready for review October 19, 2023 23:25
@kyleconroy kyleconroy merged commit 11a82f0 into main Oct 20, 2023
@kyleconroy kyleconroy deleted the kyle/analyzer-cache branch October 20, 2023 18:45
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* feat(analyzer): Cache query analysis

When using managed databases, cache the query analysis if the query,
schema and configuration file hasn't change. Also take into account the
version of sqlc.

Analysis can only be cached for managed databases as we can't know if a
connected database has been changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants