Chapter 9. Programming and caching for performance

 

This chapter covers

Performance is crucial! When you’re using SharePoint’s cool functionality to develop Web Parts, user controls, or other SharePoint artifacts, you’ll likely build applications that consume server, client, and bandwidth resources. While in development mode, your Web Parts will run fine, but once they’re in production, with more data and more users, your applications can degrade in performance. Personally, I’m a performance fanatic and like to achieve even the smallest optimization.

You can choose among several methods for improving performance. SharePoint is quite fragile and can be a performance killer if it’s not programmed and handled correctly. You must know how to handle the SharePoint objects and know how to query correctly to get good performance. Several techniques can be used to improve the performance of the server-side executed code.

Caching is the next step to take once you’ve optimized your code. Caching allows the server to temporarily store already calculated or executed operations, thereby delivering them much faster to the client. SharePoint offers a number of configuration options to help you enhance performance.

9.1. Programming for performance

9.2. Programming for performance in SharePoint

9.3. Caching techniques

9.4. Summary