Commit only every 100 inserts.
Fix to angular 1.2.3