WindowsAzure/azure-sdk-for-node — Issue #47: Table batch service should provide way to check if there are any operations pending
Author: andrerod
Created: 2012-02-06 07:03:06+00:00
State: open
Labels: P1

Currently we provide IsInBatch(), which returns whether or not you are in a batching context. However, if you try to call commit batch and haven't added any operations, we throw an exception.

The scenario I'm trying to implement is one where I am selectively updating my table entries (as I iterate through determining if any of them need updating - if they do, I add them to the batch). In the case that there are none that need updates, I will end up trying to commit an empty batch.