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 AX (Archived)

Index with include columns in AX 2009

(0) ShareShare
ReportReport
Posted on by 1,559

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

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,696 Super User 2025 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

  • Verified answer
    Mea_ Profile Picture
    60,284 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 :) 

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

    Thanks a lot, Guys.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Ivan (Vanya) Kashperuk Profile Picture

Ivan (Vanya) Kashperuk 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans