uranusjr commented on a change in pull request #21462:
URL: https://github.com/apache/airflow/pull/21462#discussion_r803624672



##########
File path: airflow/models/taskinstance.py
##########
@@ -386,6 +385,7 @@ class TaskInstance(Base, LoggingMixin):
         Index('ti_pool', pool, state, priority_weight),
         Index('ti_job_id', job_id),
         Index('ti_trigger_id', trigger_id),
+        Index('ti_map_index', dag_id, task_id, run_id, map_index, unique=True),

Review comment:
       Hmm wait, this is exactly TI’s primary key, why do we need another 
separate 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