What is the difference between
// \'this\' is the controller
this.get(\'model\').save();
and
Which one should I use?
I'd recommend using this.get('model').save()
what's the main difference between
this.get('store').scheduleSave(this)
andthis.get('store').commit()
?
If you are saving many records during the same run loop, scheduleSave
will batch changes so that multiple records will get saved in the same transaction. In some cases commit
might cause changes to other records to be persisted.