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

[Issue-109] Optimize int_hubspot__contact_merge_adjust for redshift users #110

Merged

Conversation

kcraig-ats
Copy link
Contributor

Please provide your name and company

Kris Craig, ActBlue

Link the issue/feature request which this PR is meant to address

Issue #109 - Poor performance on int_hubspot__contact_merge_adjust

Detail what changes this PR introduces and how this addresses the issue/feature request linked above.

Updated the unnest logic for redshift users in the merge_contacts macro. Replace cross join logic redshift's PartiQL syntax.

How did you validate the changes introduced within this PR?

Tested locally with a custom model.

Which warehouse did you use to develop these changes?

Redshift

Did you update the CHANGELOG?

  • Yes

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

  • Yes

Provide an emoji that best describes your current mood

🍙

Feedback

We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.

PR Template

@fivetran-jamie
Copy link
Collaborator

hey thanks so much for opening this! this works perfectly for me on our (limited) sample data. curious- how much did this cut your own runtime? @kcraig-ats

@kcraig-ats
Copy link
Contributor Author

hey thanks so much for opening this! this works perfectly for me on our (limited) sample data. curious- how much did this cut your own runtime? @kcraig-ats

@fivetran-jamie runtime dropped from 15 minutes to ~1 minute.

@fivetran-jamie fivetran-jamie changed the base branch from main to releases/v0.9.latest June 7, 2023 18:04
@fivetran-jamie
Copy link
Collaborator

sick! i'll go ahead and merge into the release branch. thanks so much for contributing

@fivetran-jamie fivetran-jamie merged commit e16278c into fivetran:releases/v0.9.latest Jun 7, 2023
@kcraig-ats kcraig-ats deleted the dbt_hubspot_issue_109 branch June 7, 2023 18:35
@kcraig-ats
Copy link
Contributor Author

@fivetran-jamie I saw the check failure. Did I do something wrong/ do I need to need to do anything more?

@fivetran-jamie
Copy link
Collaborator

ah no ignore that! it's just a reminder to us to regenerate docs before releasing

@fivetran-jamie
Copy link
Collaborator

this is in v0.10.0 of the package!

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