Jos*_*ana 1 sharepoint sharepoint-2010
SPMonitoreScope是否有任何性能影响?我的意思是,我可以将SPMonitored范围留在生产环境中吗?或者从代码中删除它是否更好?
非常感谢,
约瑟夫,
这是MSDN所说的 - http://msdn.microsoft.com/en-us/library/ff512758.aspx
性能注意事项
使用SPMonitoredScope包装代码的性能非常低.但是,应该注意的是,如果由SPMonitoredScope包装的代码段包含执行大量迭代的循环(例如,迭代通过SharePoint Foundation 2010 Web服务返回的XML节点),则调用堆栈开发人员仪表板中包含的内容可能会以指数方式增加,从而难以破译显示的信息.最佳实践
最佳和最有效地使用SPMonitoredScope的提示:
All calls to external components, such as custom databases, external Web services, and so on, should be wrapped with SPMonitoredScope. This will make it easier for administrators to identify them as points of failure, and to isolate the problem quickly.
Run Code Online (Sandbox Code Playgroud)
此致,Nitin Rastogi
归档时间: |
|
查看次数: |
716 次 |
最近记录: |