web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX DB indexing vs SQL Server DB indexing

(0) ShareShare
ReportReport
Posted on by

im still new on this & havent quite understand it.

i notice that AX itself hav their own indexing for its database. I want to know how AX indexing their database & how it effect SQL Server indexing.

My Problem :

I hav develope a small web application for transactional using non Windows PC device (Barcode Scanner with preinstalled WIN Embeded OS / RaspberryPI with Raspbian OS). The Table i access created from AX but i access it directly from SQL Server on my Web App. From that table, the AX run a jobs automaticaly to read and post all the transaction to AX system. The problem is, as more transaction coming in & the data getting bigger, my Web App getting slower. 

I have some of suspicion and one of them is the indexing as i access it directly to the SQL Server.

Does AX indexing use the same indexing as the SQL Server have so i dont have to worry about it. But as the table have to be create from AX so that the jobs can read it and it wont work if you create the table directly from SQL Server, i can assume that  AX have different indexing.

If i make another indexing outside AX like from SQL Server Maintenance Plan, does it effect or even ruin AX indexing? and for addition, i read some others forum that say AX indexing overide SQL Server Indexing.

Is there a way for me to improve my query by creating index from SQL Server without effecting AX?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Arcmagi,

    If you will create index in AX, AX will create index in SQL.

    If you will create index in SQL AX will drop it on next synchronization.

    All tables, views and indexes should be created inside of AX anything created outside of AX will be doped on next AX sync.

    AX does not have any magic inside, all it does it creates SQL queries that is been executed by SQL.  

  • Community Member Profile Picture
    on at

    Im starting to understand this.

    For my next question.

    after some times with alot of transaction/data added, the index need to be rebuild again for better query performance. does AX have their own Maintenance Plan for rebuilding index or its done automatically? if it exist, how to make schedule plan for rebuild index every month at late night like on SQL Server.

    Thanks again.

  • Mea_ Profile Picture
    60,284 on at

    No AX does not. You need to do your own SQL agent task \ any other way you love  to rebuild indexes and statistic. Or you can simply google one :)

  • Mea_ Profile Picture
    60,284 on at

    Here is good example from Microsoft i1.blogs.msdn.com/.../dynamics-ax-sql-maintenance-scripts.aspx

  • Community Member Profile Picture
    on at

    So basically we just need to create all thing from AX side (like table, index, etc) & do the maintenance plan outside AX. So as long we create all thing from AX so that it wont get dropped on sync & do all thing from SQL Server, it wont effect the AX system at all (except if u play with the data itself, which can ruin the data integrity & validity as it is outside the system)

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Yep you got a point

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans