Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

dynamics 365 on premises slow - how to rebuild indexes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi , need ideas how to improve performances of dynamics 365 on premises.  we have crm database is about 82 GB in size and performing very slow.  I have cleared most of cancelled / succeeded  system jobs .    Can  we rebuild indexes to improve performances  ? any advice would be great ...

*This post is locked for comments

  • Suggested answer
    Vivian Voss Profile Picture
    Vivian Voss 2 User Group Leader on at
    RE: dynamics 365 on premises slow - how to rebuild indexes

    Hi!

    The PrincipalObjectsAccess table was also the one we looked into when we were still on the 2011 version. Here are some more info about that:  support.microsoft.com/.../performance-is-slow-if-the-asyncoperationbase-table-becomes-too-large

    xrmblog.orbis.de/migration-issue-cleaning-asyncoperationbase-truncate-dublicaterecordbase

    Although it shouldn't be a problem in the CRM versions after 2015.

    Here is more info about fragmented indexes and rebuilding them: docs.microsoft.com/.../reorganize-and-rebuild-indexes

    Do you use ClickDimensions?

    We found that the tables for ClickDimensions were also affecting greatly our performance.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dynamics 365 on premises slow - how to rebuild indexes

    all these specs fine , we have two servers one for application one for sql  database server  (sql 2014) on windows 2012R2

    that's why we thought of running a task to  rebuild indexes,  we started from CRM 4 and upgraded version by version now in dynamics 365

    I have seen one article mentioned about truncating PrincipalObjectAccess table  https://blog.westmonroepartners.com/5-ways-to-improve-microsoft-dynamics-crm-performance/  

    I am not sure this will do the trick or not so i didn't truncate it.

  • Suggested answer
    Vivian Voss Profile Picture
    Vivian Voss 2 User Group Leader on at
    RE: dynamics 365 on premises slow - how to rebuild indexes

    Hi Madu,

    as Alex said rebuilding indexes might not solve your problem, but they  definitely will help with performance and those you need to do in the SQL database.

    Here are some links that might be useful for you:

    technet.microsoft.com/.../hh699783.aspx

    msdn.microsoft.com/.../gg509027.aspx

    technet.microsoft.com/.../hh699840.aspx

    Please remember to mark this answer as verified, if you find it useful :-)

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: dynamics 365 on premises slow - how to rebuild indexes

    Hi,

     if you just wanted to rebuild the indexes (and it might or might not help with the performance), you wouldn't be able to do it from CRM, but, I guess, you might go to the SQL server and run the kind of script provided here:

    basitaalishan.com/.../rebuild-all-indexes-on-all-tables-in-the-sql-server-database

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans