https://msdn.microsoft.com/en-us/library/bb687949(v=office.12).aspx
Then search your code to see if you use GetItemById on items collection level. If you do you might accelerate your code 10x times by simply changing it to list level.
Example (red is not optimal code):
SPList _spList = spWeb.Lists.GetList(document.MossDocLibGuid, false);
/// SPListItemCollection listItemCollection = _spList.Items;
/// SPListItem item = listItemCollection.GetItemById(document.MossDocId);
SPListItem item = _spList.GetItemById(document.MossDocId);
No comments:
Post a Comment