Updating list items in sharepoint

In my previous posts about Share Point I focused on how to improve read-access of items stored in Share Point lists.

Add Or Update Item which in fact calls a stored procedure to perform the task: If you have to update a larger number of items its highly recommended to not use the Update method on every item.

Instead – use the batch update function Process Batch Data provided by SPWeb.

Process Batch Data takes batch method definitions in XML format.

There is a nice article explaining how to use batch update.

Implementing the sample from above by making use of batch updates looks like this: As an alternative you can also use the Update List Items method of the Lists Web Service.

Conclusion Use batch processing when updating a larger number of items.

It will allow the database to process all your update requests at once and will significantly improve the overall performance of your Share Point application.

: Read the summary blog of my blog series about The Top Share Point Performance Problems. NET Platform you might also be interested in my latest White Papers about Continuous Application Performance for Enterprise .

NET Systems Andreas Grabner has been helping companies improve their application performance for 15+ years.

Tags: , ,