Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
*
* <p>Note that the <a
* href="https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data">maximum
* size of a single transaction</a> is 20,000 mutated cells - including cells in indexes. If you
* size of a single transaction</a> is 80,000 mutated cells - including cells in indexes. If you
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The documentation update to 80,000 is correct, but the change is incomplete. The DEFAULT_MAX_NUM_MUTATIONS constant in this class should also be updated to 80,000 to ensure the default behavior matches the documentation. Additionally, consider using 'number of mutations' instead of 'size' to avoid confusion with the separate 100MB commit size limit. Finally, please update the PR description to remove the placeholder text and fix the typo ('transacton').

Suggested change
* size of a single transaction</a> is 80,000 mutated cells - including cells in indexes. If you
* number of mutations in a single transaction</a> is 80,000 mutations - including mutations in indexes. If you

* have a large number of indexes and are getting exceptions with message: <tt>INVALID_ARGUMENT: The
* transaction contains too many mutations</tt> you will need to specify a smaller number of {@code
* MaxNumMutations}.
Expand Down
Loading