dzhigimont opened a new pull request, #30330:
URL: https://github.com/apache/airflow/pull/30330

   Provide custom deletion for dag runs to speed up when a DagRun has a lot of 
related task instances
   
   **Context:**
   The solution is overwriting of custom delete and delete_all methods for the 
DagRun model to speed up their deletion when DagRun has a lot of task 
instances. The default ORM cascade deletion is performing very slowly when task 
instances are more than 10k because ORM is fetching all task instances from DB 
and then deleting them one by one.
   The solution can handle the deletion of DagRun with  > 100k  task instances 
easily.
   
   Closes: https://github.com/apache/airflow/issues/30196.


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