-
Notifications
You must be signed in to change notification settings - Fork 124
[DENG-10167] Speed up DAG generation #8477
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
Conversation
This comment has been minimized.
This comment has been minimized.
| --ignore derived_view_schemas \ | ||
| --output-dir /tmp/workspace/generated-sql/sql/ \ | ||
| --target-project moz-fx-data-shared-prod | ||
| PATH="venv/bin:$PATH" script/bqetl format /tmp/workspace/generated-sql/sql/ |
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 don't need to run the formatting if we use the existing generated-sql branch since anything on there is already properly formatted. The formatting does take 2-3 minutes to run
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.
IIRC a lot (most?) of that is due to qualifying table references. That could be another thing to optimize but it seems hard to do
This comment has been minimized.
This comment has been minimized.
cc1b347 to
99d0511
Compare
Integration report for "Use cached stable schemas for stage deploys"
|
| --ignore derived_view_schemas \ | ||
| --output-dir /tmp/workspace/generated-sql/sql/ \ | ||
| --target-project moz-fx-data-shared-prod | ||
| PATH="venv/bin:$PATH" script/bqetl format /tmp/workspace/generated-sql/sql/ |
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.
IIRC a lot (most?) of that is due to qualifying table references. That could be another thing to optimize but it seems hard to do
Description
This PR speeds up the DAG generation process by:
generate-sqlstep and reuses them during DAG generation (save around 1.5minutes). If thegenerate-sqlstep gets skipped then it will still download schemasRelated Tickets & Documents
Reviewer, please follow this checklist