Skip to content

Another attempt to improve metadata gathering performance#503

Merged
benc-db merged 3 commits into
mainfrom
more_catalog_perf
Nov 10, 2023
Merged

Another attempt to improve metadata gathering performance#503
benc-db merged 3 commits into
mainfrom
more_catalog_perf

Conversation

@benc-db
Copy link
Copy Markdown
Collaborator

@benc-db benc-db commented Nov 10, 2023

Resolves #496, I hope

Description

So we think when no models are selected, stuffing the where clause with every model is probably non-performant. In dbt core, they'll only call get_catalog if no models are selected, or there are more than 100 models selected. In this case, we can filter by schemas, but probably a bad idea to make our optimizer try to handle a where clause with 200+ components.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

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.

dbt-databricks 1.6.X overeager introspection (describe extended ...) of all tables in schema -- REGRESSION

2 participants