Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How to avoid Row-by-Agonizing-Rows?

Posted on by 3
Hi, 
I am a database administrator. I have a customer where a monthly financial job is taking place that takes 8 hours to complete. The cause of this long duration is that it processes invoices row-by-row. To clarify: the query themselfs are blazingly fast. I have profiled the process with extended events/SQL Server Profiler, and they cost less than 1milisecond to complete. This invoice process is generating more than 1 milion querys within 1 hour.
 
I am an experienced database administrator/developer that can easily rewrite every T-SQL cursor, but I don't know how this works in MS Dynamics 365 Business Central. Are row-by-agonizing-row (called RBAR,as described by Jeff Moden) processes avoidable in Dynamics?
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    How to avoid Row-by-Agonizing-Rows?
    If the customer is a SaaS version, including partners, no one can directly access the database.
    If it is the On-Pre version, you can open the database directly from SQL to perform operations such as reIndex .
     
    Hope this helps.
    Thanks.
    ZHU

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans