class Google::Apis::SpannerV1::CommitStats
Additional statistics about a commit.
Attributes
mutation_count[RW]
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](cloud.google. com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). If the number of mutations exceeds the limit, the server returns [ INVALID_ARGUMENT](cloud.google.com/spanner/docs/reference/rest/v1/Code# ENUM_VALUES.INVALID_ARGUMENT). Corresponds to the JSON property `mutationCount` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 739 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/spanner_v1/classes.rb, line 744 def update!(**args) @mutation_count = args[:mutation_count] if args.key?(:mutation_count) end