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 :
Small and medium business | Business Central, N...
Suggested Answer

How to avoid Row-by-Agonizing-Rows?

(1) ShareShare
ReportReport
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?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    100,998 Super User 2026 Season 1 on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,002 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,255 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,217

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans