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/12/13 14:33:39 UTC

[GitHub] [airflow] sanjayhallan commented on issue #20249: DAG deletion is slow due to lack of database indexes on dag_id

sanjayhallan commented on issue #20249:
URL: https://github.com/apache/airflow/issues/20249#issuecomment-992540275


   bit of analysis for this ticket, these are the models which do and dont have indexes on dag id
   
   ```>>> for model in models.base.Base._decl_class_registry.values():
   ...     if hasattr(model, "dag_id"):
   ...             print(model)
   ... 
   <class 'airflow.models.log.Log'> yes btree index
   <class 'airflow.models.taskfail.TaskFail'> no 
   <class 'airflow.models.taskreschedule.TaskReschedule'> no
   <class 'airflow.models.xcom.BaseXCom'> no
   <class 'airflow.models.taskinstance.TaskInstance'> no
   <class 'airflow.models.dagrun.DagRun'> no
   <class 'airflow.models.dag.DagTag'> no
   <class 'airflow.models.dag.DagModel'> yes PK index
   <class 'airflow.models.renderedtifields.RenderedTaskInstanceFields'> no
   <class 'airflow.models.sensorinstance.SensorInstance'> no
   <class 'airflow.models.slamiss.SlaMiss'> yes btree index
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

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