batch commit after many update