Skip to content

Commit

Permalink
Increase SpannerIO write batch size to 10000 mutations in Import temp…
Browse files Browse the repository at this point in the history
…late.

PiperOrigin-RevId: 305988662
  • Loading branch information
cloud-teleport committed Apr 11, 2020
1 parent a179905 commit 8032892
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ public void processElement(ProcessContext c) {
SpannerIO.write()
.withSchemaReadySignal(ddl)
.withSpannerConfig(spannerConfig)
// Reduce the number of rows that SpannerIO groups together to eliminate the
// possibility of OOM errors when importing 'skinny' tables (with very few,
// small columns) with many rows.
// TODO(b/142641608): Remove when this is fixed in SpannerIO.
.withMaxNumMutations(1000)
.withMaxNumMutations(10000)
.withGroupingFactor(100));
previousComputation = result.getOutput();
}
Expand Down

0 comments on commit 8032892

Please sign in to comment.