add db index idx_workflow_scripts_wpid_cache_key_value (#3331)

This commit is contained in:
Shuchang Zheng
2025-08-31 14:10:05 +08:00
committed by GitHub
parent 83b3cfb6af
commit 494b009ef9
2 changed files with 39 additions and 1 deletions

View File

@@ -863,7 +863,7 @@ class WorkflowScriptModel(Base):
__tablename__ = "workflow_scripts"
__table_args__ = (
Index("idx_workflow_scripts_org_created", "organization_id", "created_at"),
Index("idx_workflow_scripts_workflow_permanent_id", "workflow_permanent_id"),
Index("idx_workflow_scripts_wpid_cache_key_value", "workflow_permanent_id", "cache_key_value"),
)
workflow_script_id = Column(String, primary_key=True, default=generate_workflow_script_id)