public sealed class CommitResponse.Types.CommitStats : IMessage<CommitResponse.Types.CommitStats>, IEquatable<CommitResponse.Types.CommitStats>, IDeepCloneable<CommitResponse.Types.CommitStats>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class CommitResponse.Types.CommitStats.
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\u003eThe latest version available for \u003ccode\u003eCommitResponse.Types.CommitStats\u003c/code\u003e is 5.0.0-beta05, with multiple earlier versions also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommitResponse.Types.CommitStats\u003c/code\u003e is a class within the Google Cloud Spanner v1 API that provides additional statistics about a commit operation.\u003c/p\u003e\n"],["\u003cp\u003eThis 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommitStats\u003c/code\u003e class includes a \u003ccode\u003eMutationCount\u003c/code\u003e property of type \u003ccode\u003elong\u003c/code\u003e, representing the total number of mutations in a transaction, which is useful to prevent exceeding system limits.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommitStats\u003c/code\u003e class has two public constructors: \u003ccode\u003eCommitStats()\u003c/code\u003e and \u003ccode\u003eCommitStats(CommitResponse.Types.CommitStats other)\u003c/code\u003e, which are used to create new instances of the \u003ccode\u003eCommitStats\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class CommitResponse.Types.CommitStats (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats) \n\n public sealed class CommitResponse.Types.CommitStats : IMessage\u003cCommitResponse.Types.CommitStats\u003e, IEquatable\u003cCommitResponse.Types.CommitStats\u003e, IDeepCloneable\u003cCommitResponse.Types.CommitStats\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class CommitResponse.Types.CommitStats.\n\nAdditional statistics about a commit. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CommitResponse.Types.CommitStats \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CommitResponse](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types)[CommitStats](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CommitResponse](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types)[CommitStats](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CommitResponse](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types)[CommitStats](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.CommitResponse.Types.CommitStats), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nConstructors\n------------\n\n### CommitStats()\n\n public CommitStats()\n\n### CommitStats(CommitStats)\n\n public CommitStats(CommitResponse.Types.CommitStats other)\n\nProperties\n----------\n\n### MutationCount\n\n public long MutationCount { get; set; }\n\nThe total number of mutations for the transaction. Knowing the\n`mutation_count` value can help you maximize the number of mutations\nin a transaction and minimize the number of API round trips. You can\nalso monitor this value to prevent transactions from exceeding the system\n[limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).\nIf the number of mutations exceeds the limit, the server returns\n[INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT)."]]