babinos87 commented on code in PR #30762:
URL: https://github.com/apache/airflow/pull/30762#discussion_r1175699141


##########
airflow/models/taskinstance.py:
##########
@@ -450,6 +450,7 @@ class TaskInstance(Base, LoggingMixin):
         Index("ti_dag_run", dag_id, run_id),
         Index("ti_state", state),
         Index("ti_state_lkp", dag_id, task_id, run_id, state),
+        Index("ti_state_incl_start_date", dag_id, task_id, state, 
postgresql_include=["start_date"]),

Review Comment:
   Added comment above the index definition, please let me know if this looks 
OK @uranusjr 



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