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

fix source patching perf with no patches #2478

Merged
merged 2 commits into from May 21, 2020

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented May 20, 2020

resolves #2474

Description

So, this is just about the lowest of low-hanging fruit possible, but this fix just makes dbt not bother going through the patch logic when there is no patch.

quick update: also, I fixed finalize_and_validate to skip a serialization/deserialization step and to avoid double-validating.

I'll keep looking at perf, but this gets us from 71.18s to 16.11s 9.64s on a 676-source project.

Checklist

  • I have signed the CLA
  • 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 next" section.

@cla-bot cla-bot bot added the cla:yes label May 20, 2020
@beckjake beckjake changed the base branch from dev/marian-anderson to dev/octavius-catto May 20, 2020 18:49
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

looks great :)

@beckjake beckjake merged commit 58f3905 into dev/octavius-catto May 21, 2020
@beckjake beckjake deleted the fix/source-patching-perf branch May 21, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance issues with a nontrivial number of sources
3 participants