Skip to content

Commit

Permalink
add documentation for enableRowBatchSize flag
Browse files Browse the repository at this point in the history
update

cc
  • Loading branch information
Manan007224 committed Mar 25, 2021
1 parent 9c372e2 commit 6d14b90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion batch_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (w *BatchWriter) WriteRowBatch(batch *RowBatch) error {
if w.EnforceInlineVerification {
// This code should only be active if the InlineVerifier background
// reverification is not occuring. An example of this would be when you
// run the BatchWriter as a part of copying the primary table or delta
// run the BatchWriter as a part of copying the primary table or the delta
// copying the joined table.
if len(mismatches) > 0 {
tx.Rollback()
Expand Down
5 changes: 5 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ type Config struct {
// EnableRowBatchsize is used to enable or disable the calculation of number of bytes written for each row batch.
//
// Optional: Defaults to false.
//
// NOTE:
// Turning off the EnableRowBatchSize flag would show the NumBytes written per RowBatch to be zero
// in the Progress. This behaviour is perfectly okay and doesn't mean there are no rows being written
// to the target DB.
EnableRowBatchSize bool
}

Expand Down

0 comments on commit 6d14b90

Please sign in to comment.