MS CRMAdaper:第一次交易需要很长时间? [英] MS CRMAdaper : First transaction needs very long?

查看:73
本文介绍了MS CRMAdaper:第一次交易需要很长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在使用已安装MS CRM-Adapter的BizTalk 2010将我们当前的ERP系统与MS Dynamics CRM进行同步.
但是在BizTalk中每次重新启动HostInstance之后(即在部署新代码之后),通过CRM-Adapter进行的第一笔交易都需要很长的时间(大约30到50秒)
接下来的每笔交易将在不到1秒的时间内通过.

为什么第一个消息需要那么长的时间,并且可以减少第一次事务中的时间?

Hi
We are using BizTalk 2010 with installed MS CRM-Adapter to synchronize our current ERP system with MS Dynamics CRM.
But after each restart of the HostInstance in BizTalk (i.e. after the deployment of new code) the first transaction via CRM-Adapter needs very long (about 30 up to 50 seconds)
Each transaction which is following will be passed in less than 1 second.

Why does the first message need so long and is it possible to reduce the time in the first transaction?

Thanks!

推荐答案

我不熟悉BizTalk或MS CRM适配器.但是,在ASP.NET应用程序中,应用程序重新启动后第一次调用的加载"时间较长,这是.NET中页面重新编译的典型症状:基本上,第一次调用未编译的页面/Web服务会导致代码首先被编译,然后执行,需要很长时间.后续调用可以使用已经编译的代码,从而快速运行.重新启动会丢弃已编译的代码,并强制重新进行编译.

如果您的新代码是通过安装程序部署的,那么是否有可能让安装程序调用一些琐碎的方法来触发重新编译?这样一来,安装过程中就会发生延迟,随后的调用会迅速执行.

[希望这会有所帮助.现在已经是凌晨2点了,我需要睡觉,所以我希望这至少是有道理的:)]
I''m not familiar with BizTalk or the MS CRM Adapter. However, long "load" times in an ASP.NET application for the first call after an application restart is a classic symptom of page recompilation in .NET: basically the first call to an uncompiled page/web service causes the code to be compiled first, and then executed, taking long. Subsequent calls can use the already compiled code, thereby running quickly. A restart discards the compiled code, and forces a recompile to happen again.

If your new code is deployed via an installer, might it be possible to have the installer call some trivial method that will trigger a recompile? That way the delay happens during installation, and subsequent calls execute quickly.

[Hopefully this will be of some help. It''s past 2am here, and I''m in need of some sleep, so I hope this at least makes sense :) ]


这篇关于MS CRMAdaper:第一次交易需要很长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆