Ver código fonte

perf: optimizing db WorkflowAppLog index (#14710)

tags/1.2.0
horochx 7 meses atrás
pai
commit
a91b780936
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      api/models/workflow.py

+ 2
- 1
api/models/workflow.py Ver arquivo

@@ -755,7 +755,8 @@ class WorkflowAppLog(Base):
__tablename__ = "workflow_app_logs"
__table_args__ = (
db.PrimaryKeyConstraint("id", name="workflow_app_log_pkey"),
db.Index("workflow_app_log_app_idx", "tenant_id", "app_id"),
db.Index("workflow_app_log_app_idx", "tenant_id", "app_id", "created_at"),
db.Index("workflow_app_log_workflow_run_idx", "workflow_run_id"),
)

id: Mapped[str] = mapped_column(StringUUID, server_default=db.text("uuid_generate_v4()"))

Carregando…
Cancelar
Salvar