- Getting a list or library from a spweb with a large number of lists and libraries. In my test case each spweb had about 90,000 document libraries on sp2010 sp1.
- You cannot cache the spweb.Lists object across calls.
- Ex: Dynamically looking up a library for each document uploaded via a custom web service or event receiver.
- Each call to
spWeb.Lists.TryGetList(libName)took 13 seconds to process since any access to the Lists collection returns the metadata for all lists in the spweb.
- Had to recode the solution to access the libraries using the URL rather than the list name, resulting in sub-second processing.