Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

CSOM get user slow

$
0
0

Hello,

I've been executing the following code get a user to update a list-item of the type "User" by CSOM.

This has worked fine for months, but now suddenly, the ExecuteQuery-line takes more than 15 seconds...! I'm not getting any error but the performance is not acceptable!

Updating the item itself works fine...

What could be the cause of this performance issue ???

var newUser = clientContext.Web.EnsureUser(userName);
clientContext.Load(newUser);
clientContext.ExecuteQuery();
userValue.LookupId = newUser.Id;


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>