Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

SQL Server rebuild index and reorganized index, slowness problem

Posted on by 105

Some stock screens are running slow in Ax, when I follow the queries on SQL Activity Monitor, I get the following result.

pastedimage1654008207306v1.png

Here it gives a warning about Indexes, but when I check fragmentations, there is no problem.

pastedimage1654008293453v2.png


I have an automatic rebuild index and reorganized index made every night for the InventDim table. However, sometimes it slows down and I manually rebuild index and reorganize index.

Sometimes even these don't work and I have to restart AOS, SQL servers.

What could be the source of this slowness problem? How can I solve it?

  • Faruk Durak Profile Picture
    Faruk Durak 105 on at
    RE: SQL Server rebuild index and reorganized index, slowness problem

    Hey Martin,

    thanks for your interest. Ax is running slow sometimes, what would you suggest I check when it runs slow?

    I think it's a slowdown that concerns SQL in general, like TempDBs. I have read and followed the recommendations for TempDBs but It's not works for me.

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: SQL Server rebuild index and reorganized index, slowness problem

    I don't see any warning regarding current indexes. What SSMS says is that adding a new index on InventSum would help this query. Rebuilding existing indexes is fine, but it's not related to this topic.

    Note that you shouldn't add every index that is suggested in this way. Review the suggestion and consider whether adding such an index is really a good idea.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans