Skip to main content

Notifications

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

My New sales order table is taking time to load.

Posted on by 75

I have created a new table where my all sales order, archive table and posted sales order are seen, when there are multiple record my page is taking time to load, how can we manage that in Al code.

Sometimes 10,000 records are showing, so how can I control that, so that there will be no delay in loading my page.

  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,234 Super User 2024 Season 1 on at
    RE: My New sales order table is taking time to load.

    Hi Shankar - There's a reason why Microsoft has created separate tables for all the transactions you've mentioned above. The main reason being - The data in these tables can be humongous sometimes in GB's. For whatever reason the customization may have been accomplished, no matter how many lines of code you optimize now, the page will load slower by each passing day and you just may not be able to do anything about it. It's the amount of data that is being displayed on a single page which is rather unfair to the overall ERP, you can't question page/BC performance here.

    There's still time to re-visit your old requirements and remove this page and rather use the individual pages built by Microsoft. You can build a report for this purpose governed/executed by date filter and/or customer and/or other parameters rather than just displaying the whole dump in a page.

    You are doing nothing but replicating GBs of data from one table to another, which will also result in increased consumption of your allocated database space (if you're using SaaS) or can slower the whole BC performance (if you're using On-Prem). I have seen Posted Sales Invoice & Archive table grow exponentially and I know how difficult it becomes to manage such a solution

  • Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: My New sales order table is taking time to load.

    Hi,
    I'm not sure how you're retrieving data for your table or which queries you are using, but I think you need to optimize it for better performance.. you can also refer to this document it provides a guide for coding for performance in business central fredborg.org/.../Guide-Coding-for-Performance-in-Business-Central.pdf
    I hope this helps.
    Regards.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans