简体   繁体   English

MS Dynamics CRM 365(在线)-使用ExecuteMultipleRequest插入自定义实体记录的性能问题

[英]MS Dynamics CRM 365 (online) - Performance issue inserting custom entity records with ExecuteMultipleRequest

I'm calling ExecuteMultipleRequest to insert 25 records of a custom entity at a time. 我正在调用ExecuteMultipleRequest插入25个自定义实体的记录。 Each batch is taking roughly 20 seconds. 每一批大约需要20秒。 Some info about the custom entity: 有关自定义实体的一些信息:

  • I did not create its schema and can't have it changed; 我没有创建其架构,也无法对其进行更改;
  • It has 124 attributes (colums); 它具有124个属性(列);

On each CreateRequest the entity has 6 attribute values filled: 2 Lookup and 4 Money. 在每个CreateRequest ,实体具有6个属性值填充:2个Lookup和4个Money。 ExecuteMultipleRequest is being called from a middleware component in a corporate network, which connects to the CRM in the cloud. 从公司网络中的中间件组件调用ExecuteMultipleRequest ,该公司网络连接到云中的CRM。 The CRM instance used is a sandbox, so it may have some restrictions (CPU/bandwidth/IO/etc), that I'm not aware of. 使用的CRM实例是一个沙箱,因此可能存在一些我不知道的限制(CPU /带宽/ IO /等)。

I can issue concurrent requests, but considering I can only have 2 concurrent requests per organization ( https://msdn.microsoft.com/en-au/library/jj863631.aspx#limitations ), it would only cut the time in half. 我可以发出并发请求,但是考虑到每个组织只能有2个并发请求( https://msdn.microsoft.com/en-au/library/jj863631.aspx#limitations ),这只会节省一半的时间。 That is still not a viable time. 那仍然不是一个可行的时间。 For each new custom CRM process created I need to load at most 5000 entity records, in less than 10 minutes. 对于创建的每个新的自定义CRM流程,我需要在不到10分钟的时间内加载最多5000个实体记录。

What can I do to improve the performance of this load? 我该怎么做才能改善此负载的性能? Where should I be looking at? 我应该在哪里看? Would a DataImport ( https://msdn.microsoft.com/en-us/library/hh547396.aspx ) be faster than ExecuteMultipleRequest ? DataImport( https://msdn.microsoft.com/zh-cn/library/hh547396.aspx )是否比ExecuteMultipleRequest更快?

Only really got suggestions for this, you would probably have to experiment and investigate to see what works for you. 对此只有真正的建议,您可能必须进行实验和调查,才能找到适合您的方法。

  1. Can you run your middleware application in a physical location closer to your CRM Online site? 您可以在更靠近CRM Online站点的物理位置中运行中间件应用程序吗?

  2. ExecuteMultipleRequest supports much larger batch sizes, up to 1000. ExecuteMultipleRequest支持更大的批处理大小,最大为1000。

  3. Have you compared to just using a single execute request. 与仅使用一个执行请求相比,您有吗?

  4. Do you have lots of processes (workflows, plugins) that occur in CRM when the data import is running? 运行数据导入时,您在CRM中是否有很多流程(工作流,插件)? This can have a big performance impact. 这会对性能产生重大影响。 Perhaps these can be disabled during data import. 也许可以在数据导入期间禁用这些功能。 Eg you could pre-process the data before import so a plugin wouldnt need to be executed. 例如,您可以在导入之前对数据进行预处理,因此无需执行插件。

  5. The concurrent requests limitation only applied to ExecuteMultipleRequest , have you tried running lots of parallel single execute requests? 并发请求限制仅适用于ExecuteMultipleRequest ,您是否尝试过运行大量并行的单执行请求?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MS Dynamics 365 CRM 在线 - 转储实体 - MS Dynamics 365 CRM online - dump entity 基于实体的 Dynamics 365 SharePoint Online 文件夹创建。 如何为现有的 CRM 记录创建文件夹 - Dynamics 365 SharePoint Online Folder creation based on entity. How to create folder for already existing CRM records MS Dynamics CRM。 自定义实体图标 - MS Dynamics CRM. Custom entity icons 使用LINQ创建自定义SSRS报表到CRM Dynamics 365 Online - Create Custom SSRS Reports Utilizing LINQ to CRM Dynamics 365 Online 如何管理MS Dynamics 365 CRM门户自定义代码? - How to manage MS Dynamics 365 CRM Portal custom codes? 如何在MS Dynamics CRM 365 v9.0中的Unified Interface App中使用特定视图打开实体记录列表页面? - How to open Entity records list page with specific view in Unified Interface App in MS Dynamics CRM 365 v9.0? 如何在 MS Dynamics CRM 中获取帐户实体的关联潜在客户记录 - How to fetch the associated Lead Records for an account entity in MS Dynamics CRM 如何通过Dynamics CRM 365内部部署中的插件在CRM Online中检索记录 - How to retrieve records in CRM Online through plugin in Dynamics CRM 365 On-Premise 无法在 Dynamics CRM 365 online 中创建系统用户 - Unable to Create a systemuser in Dynamics CRM 365 online Dynamics 365 (CRM) Online 与 XrmToolBox 连接 - Dynamics 365 (CRM) Online & connecting with XrmToolBox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM