Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Bad performance when accessing Customer Functions in MS Dynamics BC (DBC) on premises CH Business Central 18.2 (Plattform 18.0.26213.26464

(0) ShareShare
ReportReport
Posted on by 5

Hi

we have a custom developed solution for hospitals running on premises and since a few weeks face severe performance issues when using pages accessing the customer table in Dyxnamics BC.

Apparently there might be a solution to this when using partial tables which is working on DBC Version 21 upwards. Till we go to thos version there is some development upgrading work needed. so we would need a intermediate soltion which makes this faster.

When we run a trace with SQL Profiler we see that for the same function, in this case accessing customer data with a custom developed page, for some users the underlying sql query takes rougly 50 secons and for the same page with another user the query takes 3 secs. When analyzing the trace we see that the long running query selects all cusomers and the short running query makes a select with select top(50) which is the reason why its fast.

But the problem is that from within the AL code you cannot determine what SQL statement is to be used. This is handled by DBC internally.

So my question is has anyone seen this behaviour that the performance is so different for different  users when using custom developed pages accessing the DBC customer table?

What was yourr workaround or solutrion to that?

Looking forward to your feedback and ideas.

Thanks.

  • 846lzsh Profile Picture
    5 on at
    RE: Bad performance when accessing Customer Functions in MS Dynamics BC (DBC) on premises CH Business Central 18.2 (Plattform 18.0.26213.26464

    Thanks fro your prompt feedback. We have no flow fields on tthis specific customized page.

    Cheers

  • Suggested answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: Bad performance when accessing Customer Functions in MS Dynamics BC (DBC) on premises CH Business Central 18.2 (Plattform 18.0.26213.26464

    Hi

    the quick tip I can give you is to check how many flowfields you have in your customised pages

    sometimes flowfields make the opening of pages very slow, so my advice to you is to limit their use in your customised pages.

    check my answer if it helped you, thanks

    DAniele

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans