mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: ops trace slow db (#5812)
This commit is contained in:
parent
71bcf75d9a
commit
b7b1396c51
|
@ -109,7 +109,6 @@ class LangFuseDataTrace(BaseTraceInstance):
|
||||||
workflow_nodes_executions = (
|
workflow_nodes_executions = (
|
||||||
db.session.query(WorkflowNodeExecution)
|
db.session.query(WorkflowNodeExecution)
|
||||||
.filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id)
|
.filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id)
|
||||||
.order_by(WorkflowNodeExecution.index.desc())
|
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,6 @@ class LangSmithDataTrace(BaseTraceInstance):
|
||||||
workflow_nodes_executions = (
|
workflow_nodes_executions = (
|
||||||
db.session.query(WorkflowNodeExecution)
|
db.session.query(WorkflowNodeExecution)
|
||||||
.filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id)
|
.filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id)
|
||||||
.order_by(WorkflowNodeExecution.index.desc())
|
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user