Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Table Storage batch inserts across multiple partitions?

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?

like image 843
Dave New Avatar asked Mar 05 '13 10:03

Dave New


1 Answers

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.

like image 141
Gaurav Mantri Avatar answered Oct 21 '22 04:10

Gaurav Mantri