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
Thanks a lot, Guys.
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 :)
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156