fix: slow sql of ops tracing (#5749)

This commit is contained in:
takatost
2024-06-29 20:28:30 +08:00
committed by GitHub
parent cdf64d4ee2
commit 1e045a0187
4 changed files with 47 additions and 2 deletions

View File

@@ -626,6 +626,7 @@ class Message(db.Model):
db.Index('message_conversation_id_idx', 'conversation_id'),
db.Index('message_end_user_idx', 'app_id', 'from_source', 'from_end_user_id'),
db.Index('message_account_idx', 'app_id', 'from_source', 'from_account_id'),
db.Index('message_workflow_run_id_idx', 'conversation_id', 'workflow_run_id')
)
id = db.Column(StringUUID, server_default=db.text('uuid_generate_v4()'))