-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Improve get dag grid structure endpoint speed #55942
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
Improve get dag grid structure endpoint speed #55942
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
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.
Nice catch!
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/grid.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/grid.py
Outdated
Show resolved
Hide resolved
|
Thanks for the PR! You can resolve comments that have been updated |
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/grid.py
Outdated
Show resolved
Hide resolved
|
Merging. Failures are not related to this PR |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
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.
Nice catch! Thanks
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
|
The |
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- (cherry picked from commit 311277c) Co-authored-by: dor-bernstein <[email protected]> Co-authored-by: Elad Kalif <[email protected]>
* Improve get dag structure endpoint speed --------- (cherry picked from commit 311277c) Co-authored-by: dor-bernstein <[email protected]> Co-authored-by: Elad Kalif <[email protected]>
…56937) * [v3-1-test] Improve get dag grid structure endpoint speed (#55942) * Improve get dag structure endpoint speed --------- (cherry picked from commit 311277c) Co-authored-by: dor-bernstein <[email protected]> Co-authored-by: Elad Kalif <[email protected]> * fixup! fixup! [v3-1-test] Improve get dag grid structure endpoint speed (#55942) --------- Co-authored-by: dor-bernstein <[email protected]> Co-authored-by: Elad Kalif <[email protected]>
|
I created this #56968 dint realize it was already fixed! Thanks for fixing! this has been bothering me a lot! |
closes: #55941
related: #55941
Seems like the grid structure endpoint doesn't filter on dag_id when querying for previous dag versions.
Added this filter and ran it on my prod_db. The query went from 2 minutes to ~1 second.