in

Amar Galla's Weblog

The weblog of Amar Galla.

Amar Galla's Weblog

June 2006 - Posts

  • Improving SharePoint performance

    This is a neat trick to improve the performance of your Sharepoint Box if you have custom webparts installed. Normally, the SharePoint indexer kicks in to index the pages, and when it does kick in, it causes an additional hit on the server. There may be cases, when you don't want your custom webparts to connect to backend data systems and process the data when the indexer is accessing it. So what we have done, is to check if the current account calling the page, is the service account or not. If it is the service account, then just dont do anything. This way, we bypass the entire processing of each of our custom webparts, when the indexer is accessing them and hence decrease the overall load on the server.

    On many systems, the indexer is set to kick in every 10 - 20 mins, so it is quite a bit of saving on extremely busy systems.

    Posted Jun 27 2006, 11:06 AM by amar with 1 comment(s)
    Filed under:
  • Extracting dll's out of the GAC

    I was recently asked how to reference the Microsoft.SharePoint and few of the other SharePoint dll's in a project while developing on a non SharePoint machine. The solution is quite simple which we often seem to neglect.

    This is applicable for any assembly which is installed in the GAC. If you use the Windows Explorer, you can see those assemblies in the Windows\Assembly\GAC folder, but cannot copy them out of there. To access the internal structure, use the command shell, by typing cmd in the Start->Run menu. Navigate to the GAC folder and you will see all installed dll's as folders, which inturn will contain the corresponding folders for each version. Just copy the dll's from there to some other location and you have successfully extracted the dll's from the GAC.

Powered by Community Server (Non-Commercial Edition), by Telligent Systems