web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Maintenance Jobs for CRM 2016 On-Premise Environment

(0) ShareShare
ReportReport
Posted on by

Hey Guys,

We observed huge growth in SQL Database for CRM2016. Please find below table sizes from our CRM Database.

TableName

reserved_kb

data_kb

index_kb

unused_kb

dbo.AsyncOperationBase

620,993,360.00

468,719,672.00

78,842,960.00

73,430,728.00

dbo.PluginTraceLogBase

394,180,312.00

328,281,200.00

54,813,624.00

11,085,488.00

dbo.AuditBase

191,799,536.00

108,552,312.00

83,212,512.00

34,712.00

dbo.ActivityPointerBase

20,382,760.00

8,537,840.00

11,756,904.00

88,016.00

dbo.ContactBase

14,049,008.00

9,108,976.00

4,851,432.00

88,600.00

dbo.as_contactproductBase

12,959,160.00

8,821,776.00

3,926,464.00

210,920.00

dbo.ActivityPartyBase

10,115,016.00

3,527,576.00

6,581,480.00

5,960.00

dbo.CustomerAddressBase

7,378,376.00

4,780,632.00

2,578,816.00

18,928.00

dbo.BulkDeleteDependent_b87cd18963f04b8aa58ba3fa034ff651

5,551,640.00

5,527,384.00

24,200.00

56.00

dbo.as_investmentchoiceBase

4,873,904.00

2,533,256.00

2,329,320.00

11,328.00

dbo.as_memberbalanceBase

4,511,096.00

2,612,736.00

1,869,416.00

28,944.00

dbo.AccountBase

2,381,704.00

1,193,848.00

1,124,000.00

63,856.00

We have configured SQL job to cleanup of async completed records on daily basic. for the first time we have deleted 130 million records from completed state but size is not reduced yet.

AsyncOperationbase and PluginTraceLogBase tables occupied 1TB space in our SQL.

Enable logging to plug-in trace log is enable for All in our system settings.

Please suggest best way to resolve these issues and suggest best maintenance jobs to have in our CRM.

*This post is locked for comments

I have the same question (0)
  • Jarrod Williams Profile Picture
    1,747 on at
    RE: Maintenance Jobs for CRM 2016 On-Premise Environment

    You are going to need to take a second pass looking at what is in your Async table and review what states the jobs are presently in.  The KB that flydancer linked has a good select statement to see how many rows it can clean up but that also gives you a good impression of how much of the async table is still in some sort of uncompleted state.  You may need to run some checks on your workflows that are in the various states like waiting or waiting for resources.  

  • Suggested answer
    Flydancer Profile Picture
    1,332 on at
    RE: Maintenance Jobs for CRM 2016 On-Premise Environment

    Hi Khaja, have you tried the following clean up scripts for asyncoperationbase?: support.microsoft.com/.../performance-is-slow-if-the-asyncoperationbase-table-becomes-too-large

    the plugin trace log records should get deleted every 24 hours by a Bulk Deletion Job - maybe someone disabled the job by accident?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans