Open Danita opened 11 years ago
Batch API (http://elasticinbox.github.io/api/v2/batch/) is more efficient than single requests because EI, in turn, performs batch request to Cassandra. Therefore, if you are deleting 100 messages through batch API, there will be only one request sent to Cassandra node.
Perhaps we need to elaborate this in API docs.
Sorry, I was not clear enough :smile:
Obviously, for batch operations operating on many messages the batch command is more efficient. I meant, for a single message, is it the same to call the single DELETE method than calling a batch DELETE with a single id?
I mean, can I just replace...
DELETE /rest/v2/:domain/:user/mailbox/message/:uuid
withDELETE /rest/v2/:domain/:user/mailbox/message
and
PUT /rest/v2/:domain/:user/mailbox/message/:uuid
withPUT /rest/v2/:domain/:user/mailbox/message
...and send a JSON array consisting of a single
:uuid
?Are there any side effects?