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



##########
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:
       I'm currently blocked by how to get the dialect name of a database in 
the ORM and decide whether to add an index or not




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