Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX Query execution time

(1) ShareShare
ReportReport
Posted on by 345

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

  • Neetu Chamling Profile Picture
    Neetu Chamling 345 on at
    RE: AX Query execution time

    Thanks Sukrut.

  • Neetu Chamling Profile Picture
    Neetu Chamling 345 on at
    RE: AX Query execution time

    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

  • Verified answer
    Brandon Wiese Profile Picture
    Brandon Wiese 17,788 on at
    RE: AX Query execution time

    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?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans