Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Index with include columns in AX 2009

Posted on by 1,531

Hi Friends,

We are on AX 2009, since it can't have index with include columns, so we created those indices outside of AX, but, every time we sync table, it will be removed, then we have to re-create it again.

Now, we want to just create regular index in AX by simply add those included columns into AX index, since people think, performance wise, it won't have big impact.  I have some doubts about it.

Can someone with experience shred some lights on it?

Many thinks,

River

*This post is locked for comments

  • Ganriver1 Profile Picture
    Ganriver1 1,531 on at
    RE: Index with include columns in AX 2009

    Thanks a lot, Guys.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Index with include columns in AX 2009

    Adding new fields into an index its always tricky question. You  can look at SQL DMV to analyze read\write correlation, because if it is heavily updated and rare read you won't get performance increase.

    From another side if you really want to have included columns you can modify Application.dbSynchronize() method to put them back on sync, you will find some code already there that creates store procs and triggers.

    EDITED:

    While I was typing Andre gave better explanation :) 

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,188 Super User 2024 Season 2 on at
    RE: Index with include columns in AX 2009

    Hi Ganriver,

    In AX2009 there is no support for included columns on indexes from within the AOT. If you add fields to the index without this keyword in AX2009 it will cause more defragmentation of indexes and possible slower read/writes. But that is also depending on the number of records and the usage.

    Now there is a blog where there are some tips how to add the include keyword after the regular AX synchronization. Have a look at it. This might be your solution: daxdilip.blogspot.nl/.../tip-how-to-avoid-overriding-of-sql.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans