安装完成Dynamics 365 CE后别忘了更改维护作业的运行时间
摘要: 微软动态CRM专家罗勇 ,回复309或者20190308可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me 。
安装完毕Dynamics 365 Customer Engagement以后,可以看到有个服务,英文名称是 Microsoft Dynamics 365 Asynchronous Processing Service (maintenance) ,中文名称是 Microsoft Dynamics 365 异步处理服务 (maintenance) ,如下:

这个服务会运行一些定时作业,运行的作业如下图,作业说明来自文章 CRM 2013 Maintenance Jobs ,还可以参考文章: More juicy details on Dynamics CRM 2011 Asynchronous Service’s maintenance jobs 。
|
Maintenance Job Name |
Purpose |
Default Frequency/ Recommendation |
|
Deletion Service |
The deletion service maintenance operation now cleans up subscription tracking records for deleted metadata objects as they expire.
|
By default, the job executes every 24 hours, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
|
Indexing Management |
Validates that system-managed indexes exist for all entities and recreates any missing indexes. This is more for CRM Online and only impacts us during configuration of the solution. It automatically creates index for each column used in search for Quick Find if the index is not already created in the CRM database |
By default, the job executes every 24 hours, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
|
Reindex All |
Reorganizes/rebuilds fragmented indexes depending on the amount of fragmentation. It execute the p_ReindexAll stored procedure, it selects all indexes in the database with greater than 30% fragmentation and runs ReIndex on each while in online mode. Run while online mode means indexes are not taken offline while reindex is happening they still are active and are functioning and can be used. Large enterprise CRM implementation with big data volume should disable this CRM reindex job if a custom job is created for recreating the indexes and with run update stats. |
By default, the job executes every 24 hours, disable the job by setting the Job Next Run value to the future. E.g. 12/31/2999 |
|
Cleanup Inactive Workflow Assemblies |
Seeks custom workflow assemblies that are no longer referenced in workflow rules or in-process jobs. Those unreferenced assemblies are then deleted. Consider the scenario where you register version 2.0 of a custom workflow assembly. You may update your rules to reference the new version, but some in-progress jobs may still be referencing version 1.0. Once those jobs have completed, this maintenance job will clean up the version 1.0 assembly that is no longer referenced by rules/jobs. It executes the p_CleanupInactiveWorkflowAssemblies stored procedure. |
By default, the job executes every 24 hours, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
|
Create Audit Partition |
Alters the partitioning scheme for the auditbase table (SQL Enterprise only). |
By default, the job executes every month, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
|
Check for MUI Updates |
Detects upgrades to language (MUI) packs and schedules additional async operations to perform individual language provisioning. |
By default, the job executes every 24 hours, if you don’t have language pack installed, you can disable the job by setting the Job Next Run value to the future. E.g. 12/31/2999 |
|
Refresh Entity Row Count |
Refreshes the Record Count snapshot statistics leveraged enhanced query plans. This job is important because it define how Quick Find works, it uses the counts to come up with the correct query plan. |
By default, the job executes every 24 hours, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
|
Refresh Sharing Count |
Refreshes the POA read snapshot statistics leveraged in enhanced query plans. This job is important because it define how Quick Find works, it uses the counts to come up with the correct query plan. |
By default, the job executes every 24 hours, reschedule the job to run at non-peak hours. E.g. 11:00PM at night |
其中Reindex All作业会执行压缩数据库,还有就是必要的话重建索引,如果这个作业在白天用户使用比较频繁的时候执行的话,就会导致系统卡顿等不好的用户体验。建议重设到不繁忙的时候运行。
根据 Avoid Performance Issues by Rescheduling CRM 2011 Maintenance Jobs 的建议,使用 2011 Maintenance Job Editor Tool 来更新,可是这个工具已经不更新了,下面我介绍用SQL更新的办法。
首先要知道这些作业对应的编码是多少,请查看看实体System Job实体(架构名:AsyncOperation) 的 OperationType 字段的值,我这里记录如下:
| Maintenance Job Name | Maintenance Job Code |
| Deletion Service | 14 |
| Indexing Management | 15 |
| Reindex All | 30 |
| Cleanup Inactive Workflow Assemblies | 32 |
| Create Audit Partition | 41 |
| Check for MUI Updates | 42 |
| Refresh Entity Row Count | 46 |
| Refresh Sharing Count | 47 |
然后一般需要改动两个,就是15和30,一般先查出来,再修改,注意要修改两个字段的值。
Select NextRunTime,RecurrenceStartTime,*
from MSCRM_CONFIG.dbo.ScaleGroupOrganizationMaintenanceJobs
where OperationType = 30
然后再执行更改语句,一般不需要更改日期,更改时间就可以了,注意这里用的都是UTC时间,如果你是东八区,需要减去八个小时才是哦。
update MSCRM_CONFIG.dbo.ScaleGroupOrganizationMaintenanceJobs
set NextRunTime = '2019-03-08 17:00:00',RecurrenceStartTime='2019-01-20 17:00:00'
where OperationType = 30
安装完成Dynamics 365 CE后别忘了更改维护作业的运行时间的更多相关文章
- Dynamics 365 CE Update消息PostOperation阶段Image的尝试
我是微软Dynamics 365 & Power Platform方面的工程师罗勇,也是2015年7月到2018年6月连续三年Dynamics CRM/Business Solutions方面 ...
- 使用Dynamics 365 CE Web API查询数据加点料及选项集字段常用查询
微软动态CRM专家罗勇 ,回复336或者20190516可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me. 紧接上文:配置Postman通过OAuth 2 implicit ...
- Use SQL to Query Data from CDS and Dynamics 365 CE
from : https://powerobjects.com/2020/05/20/use-sql-to-query-data-from-cds-and-dynamics-365-ce/ Have ...
- Dynamics 365 CE将自定义工作流活动程序集注册到磁盘并引用其他类库
我是微软Dynamics 365 & Power Platform方面的工程师罗勇,也是2015年7月到2018年6月连续三年Dynamics CRM/Business Solutions方面 ...
- Dynamics 365 CE命令栏按钮点击后刷新表单页面方法
微软动态CRM专家罗勇 ,回复326或者20190428可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me! Dynamics 365 Customer Engagement ...
- Dynamics 365 CE中AsyncOperationBase表记录太多,影响系统性能怎么办?
微软动态CRM专家罗勇 ,回复311或者20190311可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me . 本文主要是根据微软官 ...
- 启用WCF压缩提升Dynamics 365 CE的网络性能
摘要: 微软动态CRM专家罗勇 ,回复307或者20190308可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me . 本文系根据微 ...
- 做了面向互联网部署的Dynamics 365 CE更改AD FS的登录页面
摘要: 微软动态CRM专家罗勇 ,回复306或者20190307可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me . 默认情况下A ...
- 配置Postman通过OAuth 2 implicit grant获取Dynamics 365 CE Online实例的Access Token
微软动态CRM专家罗勇 ,回复335或者20190516可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me. 对于测试Web API, Get 类型,不需要设定特别reque ...
随机推荐
- 关于分布式环境下的id生成
public class IdWorker { //基准时间 public const long Twepoch = 1288834974657L; //机器标识位数 ; //数据标志位数 ; //序 ...
- Javascript高级编程学习笔记(84)—— Canvas(1)基本用法
Canvas绘图 Canvas自HTML5引入后,由于其炫酷的效果成为HTML5新增功能中最受欢迎的部分 Canvas元素通过在页面中设定一个区域,然后就可以使用JS在其中绘制图形 <canva ...
- [Swift]LeetCode190. 颠倒二进制位 | Reverse Bits
Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 ...
- [Swift]LeetCode500. 键盘行 | Keyboard Row
Given a List of words, return the words that can be typed using letters of alphabet on only one row' ...
- Ubuntu 16.04下使用Eclipse:创建工程时卡死的解决方法
问题如下: Ubuntu 16.04下使用Eclipse创建工程时出现卡顿和卡死,新建一个MapReduce项目卡了一下午,鼠标变成了圆圈进度条转了一下午,还关不掉. 当我直接去关闭新建项目的窗口时, ...
- Jmeter-常用线程组设置及场景运行时间计算
Jmeter中通过线程组来模拟大用户并发场景,今天主要介绍三个常用的线程组,帮助我们设计更加完善的测试场景,另外介绍下场景执行时间如何计算. 一.Thread Group 取样器错误后要执行的动作 ...
- python网络-多进程(21)
一.什么是进程 进程(Process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础.在早期面向进程设计的计算机结构中,进程是程序的基本执行实 ...
- BBS论坛(三十二)
32.帖子排序功能完成 (1)front_index.html <ul class="post-group-head"> {% if current_sort==1 % ...
- python中的pip
python中的pip python有两个著名的包管理工具,其中,pip是一个.它对python的包进行管理和升级等操作. 问题一:pip本地的模块安装在哪里? 使用pip install numpy ...
- 死磕 java集合之TreeMap源码分析(二)- 内含红黑树分析全过程
欢迎关注我的公众号"彤哥读源码",查看更多源码系列文章, 与彤哥一起畅游源码的海洋. 插入元素 插入元素,如果元素在树中存在,则替换value:如果元素不存在,则插入到对应的位置, ...