Difference between model.save() versus model.get('store').commit()

女生的网名这么多〃 提交于 2019-11-30 13:06:59

Which one should I use?

I'd recommend using this.get('model').save()

what's the main difference between this.get('store').scheduleSave(this) and this.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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!