Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove guardrail check to allow users to increase the --batch-size parameter #1896

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

priyanshi-yb
Copy link
Contributor

No description provided.

@priyanshi-yb priyanshi-yb changed the title Remove guardrail to not allow users to increase the batch-size Remove guardrail check to allow users to increase the --batch-size parameter Nov 14, 2024
@@ -386,7 +387,7 @@ func validateBatchSizeFlag(numLinesInASplit int64) {
}

if numLinesInASplit > defaultBatchSize {
utils.ErrExit("Error: Invalid batch size %v. The batch size cannot be greater than %v", numLinesInASplit, defaultBatchSize)
utils.PrintAndLog(color.YellowString("Increasing the --batch-size to a very high value is not recommended as the whole batch is executed in one transaction."))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this restricted introduced in past?

Copy link
Contributor Author

@priyanshi-yb priyanshi-yb Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also can't recall the exact reason, but AFAIK this was because not to let the user increase the batch-size beyond 20K, we do mention something along the lines here on perf page as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants