public sealed class CommitStats : IMessage<CommitResponse.Types.CommitStats>, IEquatable<CommitResponse.Types.CommitStats>, IDeepCloneable<CommitResponse.Types.CommitStats>, IBufferMessage, IMessage
The total number of mutations for the transaction. Knowing the
mutation_count value can help you maximize the number of mutations
in a transaction and minimize the number of API round trips. You can
also monitor this value to prevent transactions from exceeding the system
limit.
If the number of mutations exceeds the limit, the server returns
INVALID_ARGUMENT.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eCommitStats\u003c/code\u003e class, which provides additional statistics about a commit operation within the Google Cloud Spanner V1 API, as part of version 3.8.0.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release for this class is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and the page also provides links to previous releases, ranging down to version 3.5.0, allowing easy access to prior versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommitStats\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eMutationCount\u003c/code\u003e property of type Int64 that provides the total number of mutations in a transaction, allowing users to optimize transaction sizes and avoid hitting system limits.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also gives the possibility of instantiating the \u003ccode\u003eCommitStats\u003c/code\u003e class via two constructors, one of which takes another instance of the \u003ccode\u003eCommitStats\u003c/code\u003e class as a parameter.\u003c/p\u003e\n"]]],[],null,[]]