amit-mittal commented on issue #53401: URL: https://github.com/apache/airflow/issues/53401#issuecomment-3160613956
I created [this issue](https://github.com/apache/airflow/issues/53154) which is essentially the combination of two different issues. I am curious: - Why are we including `ID` column in the index and that too as the first column on `task_instance` table when the select query is just doing `WHERE span_status = SHOULD_END`? ([Code](https://github.com/apache/airflow/blob/71b03470da2d104a07a68da2d496fa9ed253f335/airflow-core/src/airflow/jobs/scheduler_job_runner.py#L1113)) - We should be adding the same index on `dag_run` table as well because there is a similar `SELECT` query. ([Code](https://github.com/apache/airflow/blob/71b03470da2d104a07a68da2d496fa9ed253f335/airflow-core/src/airflow/jobs/scheduler_job_runner.py#L1110)) cc @anandkaranubc since you are working on the pull request. -- 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]
