-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make the batch parameter a bit more obvious #87
Conversation
87ad526
to
33d06b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, I don't really feel like your change makes the docs any more clear. What seems to be the most helpful improvement is improving the statement about that it runs in batches.
@arybczak Might want to decide this.
-- | ||
-- Function that takes a list of primary keys provided by the cursor SQL and | ||
-- Modification function that takes a batch of primary keys provided by the cursor SQL and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would you point out that this function is a Modification
function? It's called ModifyColumnMigration
and the docs also say that it runs an arbitrary computation... To me, stating that this function modifies something is quite excessive and makes the doc a bit annoying to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽 sure it does look annoying now. I'll remove Modification
Clarifying that it runs in batches was the reason for this PR as it came up during a review where it wasn't clear to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this looks much better to me.
Make the batch size parameter a bit more obvious in the documentation of
ModifyColumnMigration