Skip to content

Commit

Permalink
0003802: Faster two-pass initial load for tables with LOB on Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
elong committed Dec 20, 2018
1 parent b3b0533 commit eb1fefa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2671,7 +2671,7 @@ protected CsvData selectNext() {
}
}

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

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit eb1fefa

Please sign in to comment.