Skip to content

Conversation

@dor-bernstein
Copy link
Contributor

@dor-bernstein dor-bernstein commented Sep 22, 2025

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.

@boring-cyborg
Copy link

boring-cyborg bot commented Sep 22, 2025

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)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Sep 22, 2025
@eladkal eladkal added this to the Airflow 3.1.1 milestone Sep 22, 2025
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Sep 22, 2025
Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@dor-bernstein dor-bernstein requested a review from ashb September 22, 2025 20:31
@bugraoz93
Copy link
Contributor

bugraoz93 commented Sep 22, 2025

Thanks for the PR! You can resolve comments that have been updated

@eladkal
Copy link
Contributor

eladkal commented Sep 23, 2025

Merging. Failures are not related to this PR

@eladkal eladkal merged commit 311277c into apache:main Sep 23, 2025
106 of 107 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 23, 2025

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Nice catch! Thanks

abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
@hussein-awala
Copy link
Member

The SerializedDagModel.id != latest_serdag.id filter was misplaced in the original query, and it's the reason of the performance issue, I tested this PR without your filter and it solved the issue, but I kept your filter to avoid re-introducing the bug.

abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
* Improve get dag structure endpoint speed


---------

Co-authored-by: Elad Kalif <[email protected]>
Lee-W pushed a commit to astronomer/airflow that referenced this pull request Oct 21, 2025
* 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]>
Lee-W added a commit to astronomer/airflow that referenced this pull request Oct 21, 2025
Lee-W pushed a commit to astronomer/airflow that referenced this pull request Oct 21, 2025
* 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]>
Lee-W added a commit to astronomer/airflow that referenced this pull request Oct 21, 2025
kaxil pushed a commit that referenced this pull request Oct 21, 2025
…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]>
@dheerajturaga
Copy link
Contributor

I created this #56968 dint realize it was already fixed!

Thanks for fixing! this has been bothering me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow Grid Structure doesn't load

8 participants