提交 f4d7bd11 编写于 作者: zhouweidong's avatar zhouweidong

规则执行结果动态存储

上级 ba29dd00
...@@ -133,10 +133,12 @@ public class ExecResultExService extends ExecResultServiceImpl { ...@@ -133,10 +133,12 @@ public class ExecResultExService extends ExecResultServiceImpl {
tempExecResults.add(execResult); tempExecResults.add(execResult);
if (tempExecResults.size() >= 500) { if (tempExecResults.size() >= 500) {
dbEntityService.clearResultBatch(tempExecResults, dsName); dbEntityService.clearResultBatch(tempExecResults, dsName);
tempExecResults.clear();
} }
} }
if (tempExecResults.size() > 0) { if (tempExecResults.size() > 0) {
dbEntityService.clearResultBatch(tempExecResults, dsName); dbEntityService.clearResultBatch(tempExecResults, dsName);
tempExecResults.clear();
} }
resultsDeleteAsync.remove(engineId); resultsDeleteAsync.remove(engineId);
} }
...@@ -196,7 +198,6 @@ public class ExecResultExService extends ExecResultServiceImpl { ...@@ -196,7 +198,6 @@ public class ExecResultExService extends ExecResultServiceImpl {
add(execResult); add(execResult);
}}); }});
} }
} }
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册