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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans