Add workflow_oid_status_idx index to workflow table to index status (#1642)

This commit is contained in:
Shuchang Zheng
2025-01-25 04:17:12 +08:00
committed by GitHub
parent 4db5906d04
commit 0054117171
2 changed files with 30 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ class WorkflowModel(Base):
),
Index("permanent_id_version_idx", "workflow_permanent_id", "version"),
Index("organization_id_title_idx", "organization_id", "title"),
Index("workflow_oid_status_idx", "organization_id", "status"),
)
workflow_id = Column(String, primary_key=True, index=True, default=generate_workflow_id)