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)

Create an index from SQL and not AX

(0) ShareShare
ReportReport
Posted on by 2,188

Hi Everyone

my scenario is as follow:

when activating standard cost prices AX performance decreases sensibly.

By tracking the set of queries from SQL during the activation  , it turns out that  SQL suggests to add a couple of indexes on inventtrans and inventcosttrans.

Now , I tried in a test environment and I have created the indexes from SQL ( not AX) and the cost activation performance improved sensibly.

I  know that technically AX is the master and indexes created from sql will be dropped after a sync but in theory is exactly what I want.

As my company calculates the standard cost once or twice a year, the idea would be to create the indexes before rolling the new costs and then drop them after the calculation has been completed.

This will ensure the index creation has not impact on AX and they are used one-off to speed the calculation up.

I would like your thought on this. I am concerned that adding and dropping the indexes directly from SQL will have an impact on AX performance. Is this a possible side effect?

Many thanks

*This post is locked for comments

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

    Hi Alessandro,

    AOS is just a second tier and it 100% relay on SQL server to execute queries. It does not have any logic on query optimization or execution.

    If you will go to Application.dbSynchronize() you will see some code that is creating triggers and store procs in SQL.

    So I don't see any possible issues with AX performance. Just be aware that AX will drop you index on next sync.

  • Aparisi82 Profile Picture
    2,188 on at

    Hi Ievgen

    thanks for your quick reply.

    Just to be safe, I have run a couple of tests in test environment and I have monitored the table size before and after installing and dropping the indexes. As result there was not no decrease/increase of table size related to data which let me think that I can do it without any issue.

    Cheers

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans