Skip to content

Commit

Permalink
docs: explain mutate vs mutate_rows (#543)
Browse files Browse the repository at this point in the history
Thanks to Bora for spotting this!
  • Loading branch information
vii committed Mar 23, 2022
1 parent efabba0 commit 84cfb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/bigtable/batcher.py
Expand Up @@ -33,7 +33,7 @@ class MutationsBatcher(object):
request.
This class is not suited for usage in systems where each mutation
needs to guaranteed to be sent, since calling mutate may only result in an
must be guaranteed to be sent, since calling mutate may only result in an
in-memory change. In a case of a system crash, any DirectRows remaining in
memory will not necessarily be sent to the service, even after the
completion of the mutate() method.
Expand Down Expand Up @@ -105,7 +105,7 @@ def mutate(self, row):
self.flush()

def mutate_rows(self, rows):
"""Add a row to the batch. If the current batch meets one of the size
"""Add multiple rows to the batch. If the current batch meets one of the size
limits, the batch is sent synchronously.
For example:
Expand Down

0 comments on commit 84cfb0a

Please sign in to comment.