turbaszek commented on a change in pull request #8227:
URL: https://github.com/apache/airflow/pull/8227#discussion_r431627592
##########
File path: airflow/models/dagrun.py
##########
@@ -54,25 +54,27 @@ class DagRun(Base, LoggingMixin):
_state = Column('state', String(50), default=State.RUNNING)
run_id = Column(String(ID_LEN))
external_trigger = Column(Boolean, default=True)
+ run_type = Column(String(50), nullable=True)
conf = Column(PickleType)
dag = None
__table_args__ = (
- Index('dag_id_state', dag_id, _state),
+ Index('dag_id_state_type', dag_id, _state, run_type),
Review comment:
@kaxil do you suggest single index `Index('dag_run_type', run_type)`? I
must admit that I was running some tests with and without
`Index('dag_id_state_type', dag_id, _state, run_type)` but there was no big
difference
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]