[refactor] little improvements for addAll and addOrUpdateAll methods