Batch record creation, updating, and deletion
It would be nice to be able to batch these operations to reduce the number of requests made to the server.
This would be analogous to findMany right? So it should probably follow the same pattern where these adapter methods are optional, as many apis don't support batch operations.
@ebryn, @raytiley do you have any idea how interface should looks for this?
Maybe something like this:
App.User.batchCreate(arrayOfModelsToSave)
App.User.batchDelete(arrayOfModelsToDeleteOrIds)
or
App.User.batchAction('create', arrayOfModels)
What do you think?
I believe we want a separate Transaction/Batch object that feels like an array (you push records into it), and has a save method. I believe this Transaction/Batch object would have it's own adapter/hooks for implementing the AJAX code.