Modified SetPermissionCommand and UpdateCommand to support large change sets by adding
transaction commit after 1000 entities.