-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add number of queries guard in public xcom entries list endpoints #55936
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
265d7f3 to
69c46e7
Compare
3c5d0fd to
cf5aa7d
Compare
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.
I am working on this for all 'list' endpoint, across all entities and public/ui apis.
I am first taking care of only list endpoint because those are the most critical for N+1 query problem. Then we can do the same for other endpoints.
You can probably rebase on the PR above, keep the xcom part and the 'noload'. Rename the PR description and add the assert_queries_count in tests. Too
airflow-core/src/airflow/api_fastapi/core_api/routes/public/event_logs.py
Outdated
Show resolved
Hide resolved
cf5aa7d to
74f1f50
Compare
Sure, I've modified this PR to ensure there is no N+1 query issue for list |
74f1f50 to
314cd84
Compare
pierrejeambrun
left a comment
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.
Thanks
…ndpoints (apache#55936) (cherry picked from commit fc72417) Co-authored-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Add number of db queries guard in list endpoint, preventing further N+1 queries problem
N+1 queries problem detected and solved.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.