Background
The project I’m currently working on involves searching through a lot of data as quickly as possible.
There are documents around the Internet that detail the fastest returns for querying a SharePoint list, aside from SQL queries which aren’t supported, the next best way is SPQuery.
1 2 3 4 | SPQuery query = new SPQuery(); query.Query = BuildQuery(); SPListItemCollection items = list.GetItems(query); |
The BuildQuery() method is a place-holder for another project I’m working. The intention will be able to create CAML queries on the fly. I’ve done this for the current project but it’s not really ready to talk about here.