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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to