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 Query execution time

(1) ShareShare
ReportReport
Posted on by 351

Hi All,

I have created a view based on view 'LEDGERACTIVITYANALYSISCURRENCYAMOUNT' and 'LEDGERENTRYJOURNAL' to get journalBatchnumber .

Query is performing well in dev VM but at tier -2 environment execution time is quite high.

I took back of AX DB and restore on my local VM and ran same query but query ran quickly.

Would like to know, how tier -2 environment having same AX DB transactions are running for so long?   

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    It could be a lot of things.

    For example, different versions of SQL Server (or the same version with different service packs or hotfix levels).  Or, different trace flags, providing for different query optimizations.  Or, different SQL Server configuration, such as Maximum degree of parallelism or any other configuration option that impact query optimization.  And so on.

    Have you checked out the cached compile plan on each server and compared them?

  • CU13051429-0 Profile Picture
    351 on at

    Analysis ed execution plan and found most of time has taken by multiple "Table Spool/Lazy Spool".

    Looked few articles  on it . any suggestions are welcome

  • CU13051429-0 Profile Picture
    351 on at

    Thanks Sukrut.

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