13

The following method can be used to batch insert a collection of entities as a single transaction:

CloudTable.ExecuteBatch(TableBatchOperation batch)

If any of the entities fail during insert, then nothing will be inserted from the collection. This is only available when inserting into one partition.

Is it possible to do something like this across multiple partitions?

1 Answer 1

18

No. All entities in a batch must have the same PartitionKey. If your entities have different PartitionKeys, they need to be in separate batches. For more details about entity batch transactions, please see here: http://msdn.microsoft.com/en-us/library/windowsazure/dd894038.aspx.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.