更新Sharepoint用户配置文件最快/最优化的方法是什么? [英] What is the Fastest/Optimized way to update Sharepoint User Profiles?

查看:100
本文介绍了更新Sharepoint用户配置文件最快/最优化的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用UserProfileManager在C#中以编程方式更新大约100,000个共享点用户配置文件.
在我的测试中,似乎每个用户个人资料更新都需要我0.7秒才能完成.这是对的吗?以这种速度,我将需要17.5个小时才能完成更新过程.

我正在使用类似下面的代码:

Hi,

I''m updating around 100,000 sharepoint user profiles programmatically, in C#, using the UserProfileManager.

In my tests, it appears that each user profile update is taking me 0.7 seconds to finish. Is this about right? At this rate, it''ll take me 17.5 hours to complete the update process.

I''m using code similar to below:

using (var spSite = new SPSite(txtUrl.Text))
{
    var spContext = SPServiceContext.GetContext(spSite);
    var userProfileManager = new UserProfileManager(spContext);

    ...

    var accountName = "MyAD\\mickey.mouse"; // hard code for now
    var userProfile = userProfileManager.GetUserProfile(accountName);

    userProfile["WorkEmail"].Value = "mickey.mouse@gmail.com";

    userProfile.Commit();
}



我做错什么了吗?还有更好的方法吗?
我希望只能在几个小时内完成更新过程.


提前谢谢.

Rafferty



Am I doing anything wrong? Any better way to do this?
I''m hoping I''ll be able to finish the update process in a few hours only.


Thanks in advance.

Rafferty

推荐答案

我没有发现任何错误,您只是在尝试进行大规模更新.您正在尝试更新什么,为什么它不由Profile Sync作业处理?
Nothing wrong that I can see, you are just trying to make a massive update. What is it you are trying to update and why isn''t it being handled by Profile Sync job?


这篇关于更新Sharepoint用户配置文件最快/最优化的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆