This blog will give you all possible information about Microsoft Dynamics CRM 2011 Client, factors which affect the performance of your CRM client and the performance improvement techniques specific to client side layer of CRM architecture.
I will also list down the software and hardware resources and their usage to monitor and achieve desired CRM client performance.
How do you decide that you need to improve the performance of your CRM client?
The answer is pretty straightforward, it all depends on “How quickly you get the response from the browser and once you receive it how fast you render the objects from the response on the page”.
What do you measure in the system to confirm that you need to improve the performance?
- Time to First Byte: The time the browser receives the first byte from the server after a request has been made. All your latency issues all your server issues are the culprits here. Long TTFB can mean that the server is experiencing delays processing resources, under heavy load, or doing complex calculations. Time to First Byte, basically depends on amount and efficiency of customizations and if you have some form applications built using Dynamics CRM SDK, that all matters here. Basically it is all about optimizing the traffic, if you can optimize the traffic, you can reduced the traffic and eventually the performance.
- Render Start Time: The start render time is the moment something first displays on the user's screen. The web page goes from a blank white screen and changes. It doesn't necessarily have to be content including images and iframes. Before the web page starts to render, browsers must download and parse the objects on the HEAD element, and calculate the initial layout before content can show up on the screen. Optimizing your start render time is mainly a function of server response and optimizing the efficiency of the elements in the HEAD of your HTML documents. There are a number of best practices that can be used to speed up start rendering.
- DOM Content Loaded: The DOMContentLoaded event is triggered when the page's Document Object Model (DOM) is ready, and when the document has been completely loaded and parsed, without waiting for stylesheets, images, and sub frames to finish loading. You can have a look at this test page to understand this http://ie.microsoft.com/testdrive/HTML5/DOMContentLoaded/
- Page Load Time: The event is triggered when the entire page has loaded. This is moment when the globe or loader in your browser's title bar stops spinning. The major and most powerful toll for an end user to identify the performance of your Dynamics CRM client .To understand the value and effect of Page Load time you can have a look at one of the very famous user experience and impact study for Page Load Time here: http://www.webpronews.com/how-page-load-speed-impacts-seo-and-user-experience-2013-04
Though it is old but holds good even today.
The Thumb Rule for Good Performance
After having a look at parameters, there is one solution for major performance problems in for Any Dynamics CRM client, and that is “less and Efficient customizations”.
Ribbon customizations again causes performance issues. With the introduction of contextual ribbon, there is lot of scope for performance to be degraded. Every time the ribbon loads, the xml written behind the ribbon loads. Similarly the little and almost ignorable thing in left side of your form, The Sitemap.
The idea is the lesser stuff you send from server to site and site to server is better for the performance of your client.
Here is a checklist which can help you identify and reduce the issues with your client performance:
- Optimize Your Form Load Experience.
- Keep less fields on the form.
- Do not overuse scripts (Avoid OnLoad; Use OnChange since its on demand).
- Trim the ribbon appropriately.
- Be wary of client side enabled rules.
- Use collapsed sections whenever possible.
- Use server side show/hide fields.
- Use ‘read optimized’ forms.
- Use iFrames carefully, the more you have longer it takes to load.
- Use Sub-grids, where necessary as it tend to increase page size quickly.
- Manage the complexity and visualizations of dashboards.
Other than customizations,
- Make sure you meet the minimum requirements for Hardware
- Power settings can affect performance
- Proxy server settings
- Configure Internet Explorer for optimal performance: Configuring client-side browser caching and Configuring simultaneous download sessions
- Extraneous processes, applications, and add-ins
- Security packages and anti-virus applications: Disabling Script sca
- Internet Explorer zoom setting
The Dynamics CRM Outlook Client
We discussed about Dynamics CRM Web Client in the above sections. Let’s now have a look at Dynamics CRM Outlook Client and things we need to keep in mind from performance standpoint. There are several configuration techniques available for optimizing the performance of Microsoft Dynamics CRM for Outlook, which are detailed in the following sections.
These are some recommendations which are also mentioned in the performance whitepaper for dynamics CRM 2011.
Optimizing the Outlook Synchronization Process
Make sure that you configure the filters associated with the Outlook synchronization process too affect the fewest record types and to occur as infrequently as possible without compromising business requirements and to avoid creating duplicate records if key fields match. For more information about the settings and step by step guidance, you can go through this:
Optimizing Address Book Performance
To optimize Address Book performance, configure the Address Book to match only against the contacts that are synchronized too Microsoft Dynamics CRM and too retrieve updates as infrequently as possible without compromising business requirements.
Pinning Commonly Used Views
With Microsoft Dynamics CRM for Outlook, users can open tabs to display multiple views of an entity. Users can also “pin” views so they always display when a user logs in to Outlook. Pinned views, which are stored in cache, respond more quickly than do standard views, so be sure that suggest that users “pin”” the views with which they most commonly interact.
Now here I am going to contradict the above statement a little:
Watch what you pin: as the “pin” downloads everything on the client that you are using. But it downloads everything. So balance it out. People disable MAPI traffic but in certain client it is the only way to go.
Optimizing the Offline Synchronization Process
To optimize the offline synchronization process on computers running Microsoft Dynamics CRM for Outlook with Offline Access, consider the following best practices:
Assign all users roles with the minimum access levels and permissions required to perform a job function to help ensure optimized data synchronization too the offline client.
Avoid “Sliding time windows” and “Parent downloaded=true” clauses. Use of this clause often results in the synchronization of unnecessary data, which can degrade the performance of the synchronization
Implement local data filtering for each offline client to ensure that users have offline access only to the data required to perform their job functions. After implementing local data filtering, be sure to remain online and synchronize the data manually. The initial synchronization will be slower than subsequent synchronizations because Microsoft Dynamics CRM must remove records.
Configure offline synchronization to run in the background periodically
For more information about offline synchronization, see the following resources “Offline and Online Synchronization in Microsoft Dynamics CRM”:
Frequency of publishing customizations: Maintain the frequency of the publishing process of the latest updates/ customizations you have made to system. Very importantly before UR12 we had to download the metadata every time there are changes or customizations. And after UR 12 it only downloads only the delta. There is a new API which accepts the timestamp and which helps you download the delta.
So make sure you have the UR12 to get benefited by this feature.
- CRM Outlook client background polling: You might have come across this scenario often. At initial stages, everything is working fine and fast but suddenly everything becomes slow the reason could be there is polling happening at the background which is affecting performance of your outlook client. There are some registry settings that can really help in this situations, I am listing below those settings and what their significance are.
CRM Outlook offline filters: it’s a well known fact that the filters hampers the performance, so make sure that you use the filters effectively.
Tools which can be used
Fiddler: This tool is generally used to inspect HTTP traffic as the CRM pages are being loaded. This tool has many features that give you a lot of information and insight into what is happening during the page load. For example you can see number of requests flowing, content of your webpage and scripts of your page.
This covers all the aspects of performance for Dynamics CRM client. In the next blog I will cover SQL server performance optimizations for Dynamics CRM 2011.
I hope this helps.
Until next post!