We're saving a collection of a model but backbone seems to want to do these one after the other. This can be expensive and takes a while to complete which can lead to data not being saved if the user refreshes or navigates away from the page mid process.
Is there a way to get Backbone to send them off as an array?
How would I do this?
code that does the saving:
_(this.models).each(
function(guest) {
if (tid == guest.get('tableId') || guest.get('tableId') == null) {
guest.set({ tableId: tid });
guest.save();
}
}
);