vatsrahul1001 opened a new pull request, #72737:
URL: https://github.com/apache/airflow/pull/72737
Backport of #71915 to `v3-3-test` for the Airflow 3.3.2 patch release.
**This is an adaptation, not a straight cherry-pick.** #71915 was written on
top of #69833 ("Consolidate UI Dependency Graphs", a 29-file refactor that is
*not* backported), so its diff doesn't apply to v3-3-test's older
dependency-graph function. v3-3-test has the same N+1 pattern (a
`TaskInletAssetReference`/`TaskOutletAssetReference` query per task, inside the
producing/consuming loops), so I applied the same optimization to it: collect
the task keys for the current asset and resolve inlets/outlets in a single
batched `tuple_(...).in_(...)` query.
Behaviour is unchanged — all 26 tests in `test_dependencies.py` pass locally.
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.8)
Generated-by: Claude Code (Opus 4.8) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]