azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Table: Unify the creation of Batch and single op requests

Open jcookems opened this issue 14 years ago • 2 comments

The REST request for a single table operation (for example, updateEntity) should be the same as the MIME part of a batch request containing the same operation.

However, the current Table service implementation had two separate code paths for generating those requests:

updateEntity 
-> putOrMergeEntityCore 
    -> (code for building headers and constructing body)
batch(InsertEntityOperation)
-> createBatchRequestBody
    -> createBatchInsertOrUpdateEntityPart
        -> (code for building headers and constructing body)

To simplify the code, reduce maintenance costs, and ensure consistency between single ops and batch, both code paths should end up in the same function.

jcookems avatar Apr 24 '12 19:04 jcookems

this part is actually odata.

gcheng avatar Feb 21 '13 22:02 gcheng

at the time of updating these methods, will may do them. close for now.

gcheng avatar Feb 21 '13 22:02 gcheng