Skip to content

Commit

Permalink
increase num partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Feb 28, 2024
1 parent a8a1f47 commit 1924a84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flow/workflows/snapshot_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ func (s *SnapshotFlowExecution) cloneTable(
numRowsPerPartition = s.config.SnapshotNumRowsPerPartition
}

// hack for pg12
numRowsPerPartition = numRowsPerPartition * 20
s.logger.Info("incrementing numRowsPerPartition by 20x for pg12", slog.Int("numRowsPerPartition", int(numRowsPerPartition)))

config := &protos.QRepConfig{
FlowJobName: childWorkflowID,
SourcePeer: sourcePostgres,
Expand Down

0 comments on commit 1924a84

Please sign in to comment.