Change frequency of commits during data insertion