Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MXP-2662 Remove caching lookup to prevent further issues with inconsistencies #7

Closed
wants to merge 1 commit into from

Conversation

CoKueb
Copy link
Collaborator

@CoKueb CoKueb commented Jul 25, 2024

No description provided.

@CoKueb CoKueb requested a review from kramerul July 25, 2024 06:22
…okup to prevent further issues with inconsistencies

Signed-off-by: Corvin Kuebler <[email protected]>
@@ -80,7 +79,7 @@ public JdbcCatalogSchema(DataSource dataSource, SqlDialect dialect,
this.dialect = requireNonNull(dialect, "dialect");
this.convention = requireNonNull(convention, "convention");
this.catalog = catalog;
this.subSchemas = new CachingLookup<>(new IgnoreCaseLookup<JdbcSchema>() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to keep this. Otherwise, we will get at least 2 database queries for each table used within a query during preparation.

@CoKueb CoKueb closed this Jul 25, 2024
@CoKueb CoKueb deleted the MXP-2662 branch July 25, 2024 06:44
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.

2 participants