Save model fails APEX CPU time limit error / saving too many rows at once (javascript)

Well, there is an undocumented function on models called setHasChanged()
with one boolean input.

Lemeno