Mar 21, 2014 by Dick Wenning Category: AX2012 R2, SQL 0 comments

We all know indexes on AX tables will improve performance when querying these tables. There are all kinds of fancy features such as parameter sniffing, trace flags, etc. But if we look for example at the ledger Journal Trans table you will start thinking that maybe core dynamics AX has added too many indexes.

There are 27 indexes in AX 2012 R2. So what’s next…

image002

These indexes are added, when specific features in AX are created. But do you use these features? Even when the configuration key is turned off the index is still there.  Trust me, to maintain 27 indexes on a table is a huge overload.  So how can we get right of these indexes?

The trick is to change the property Enabled to False. Next time you synchronize the database, they will disappear. But now you have to determine the obsolete indexes.

I can give you some guidance:

  • Unique indexes are never obsolete
  • Indexes with 0 seeks are really not used. But check this over a longer period.
  • Indexes with more updates then seeks are expensive.
  • How unique is this index?

Find the answers to these questions and you know if it is obsolete. You have to investigate the sys.dm_db_index_usage_stats in SQL. In case this is too complex for you, an alternative could be the Kaya Performance Dashboard. This will collect all your data so you only have to set the property Enabled to False on the index in the AOT.

image004

I can guarantee that the performance will double.

Leave a Comment!

Your email address will not be published. Required fields are marked *