Lee-W opened a new issue, #67484:
URL: https://github.com/apache/airflow/issues/67484

   ### Body
   
   `airflow dags clear` (#66004) loops `Dag.clear(run_id=...)` per matched run, 
so a wide `--partition-date-*` window or broad `--partition-key` costs N 
transactions.
   
   Reusing `Dag.clear()` was deliberate (identical TI reset / re-queue 
semantics); a true bulk path needs its own design — single TX or batched per 
`airflow-core/src/airflow/utils/db_cleanup.py`. Switch the per-run loop to it 
once available.
   
   Raised in 
https://github.com/apache/airflow/pull/66004#discussion_r3296754497.
   
   ### Committer
   
   - [x] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


-- 
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]

Reply via email to