* You are viewing the archive for November, 2011

SharePoint folder performance

In a recent project we had the idea to use folders as a starting position for queries to optimize the performance a bit further. To set a starting folder on an SPQuery object you need to set the Folder property to the SPFolder object you wish to search.

This is what this post is about: how to get that folder (by name) in C# in a performant matter.

Let’s get down to business: what I would like to do is write a function that takes in a folder name and it returns me the SPFolder object (in the … Continue Reading