-
Notifications
You must be signed in to change notification settings - Fork 161
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: more perf by offloading mork work to cores #3189
Conversation
a1967d3
to
b9bce9c
Compare
sqlmesh/core/loader.py
Outdated
|
||
model._data_hash = data_hash | ||
model._metadata_hash = metadata_hash | ||
model.update_schema(mapping_schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We wouldn't have to do this twice, if we were updating the schema prior to submitting a task like we used to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to do it here on the computed mapping because it was done in a different process. we do it in the process so that we can leverage cores
two hot spots: model.update_schema was expensive because we had to generate sql for every column model._data_hash/_metadata_hash was expensive when calling context.snapshots
No description provided.