You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/04 10:46:19 UTC

[GitHub] [airflow] yuqian90 commented on pull request #14048: Speed up clear_task_instances by doing a single sql delete for TaskReschedule

yuqian90 commented on pull request #14048:
URL: https://github.com/apache/airflow/pull/14048#issuecomment-773213408


   Thanks @potiuk  and @mik-laj for the review. I updated the PR according to your comments.
   
   Also, I noticed that doing `TR.__table__.delete().where(...)` seems to be slightly faster than what I was doing with `session.query(...).filter(...).delete()` by a small margin. So I changed the PR to use it instead. 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org