Skip to content
Permalink
Browse files

0003802: Faster two-pass initial load for tables with LOB on Oracle

  • Loading branch information...
elong
elong committed Dec 20, 2018
1 parent b3b0533 commit eb1fefa4e4a2d85ac5f9e23ff695facfe1f6cc22
@@ -2671,7 +2671,7 @@ protected CsvData selectNext() {
}
}

if (symmetricDialect.isInitialLoadTwoPassLob(this.sourceTable)) {
if (this.routingContext.getChannel().isReloadFlag() && symmetricDialect.isInitialLoadTwoPassLob(this.sourceTable)) {
this.isLobFirstPass = true;
}

@@ -2741,7 +2741,7 @@ protected void startNewCursor(final TriggerHistory triggerHistory,

Channel channel = configurationService.getChannel(triggerRouter.getTrigger().getChannelId());

if (symmetricDialect.isInitialLoadTwoPassLob(this.sourceTable)) {
if (channel.isReloadFlag() && symmetricDialect.isInitialLoadTwoPassLob(this.sourceTable)) {
channel = new Channel();
channel.setContainsBigLob(!this.isLobFirstPass);
selectSql = symmetricDialect.getInitialLoadTwoPassLobSql(selectSql, this.sourceTable, this.isLobFirstPass);

0 comments on commit eb1fefa

Please sign in to comment.
You can’t perform that action at this time.