提交 106bf800 编写于 作者: S Serge Rider

#11304 Data load progress monitor optimization

上级 8b492705
......@@ -350,7 +350,9 @@ public class DatabaseTransferConsumer implements IDataTransferConsumer<DatabaseC
boolean needCommit = force || ((rowsExported % settings.getCommitAfterRows()) == 0);
boolean disableUsingBatches = settings.isDisableUsingBatches();
if ((needCommit || disableUsingBatches) && executeBatch != null) {
targetSession.getProgressMonitor().subTask("Insert rows (" + rowsExported + ")");
if (DBFetchProgress.monitorFetchProgress(rowsExported)) {
targetSession.getProgressMonitor().subTask("Insert rows (" + rowsExported + ")");
}
Map<String, Object> options = new HashMap<>();
options.put(DBSDataManipulator.OPTION_DISABLE_BATCHES, disableUsingBatches);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册