Skip to main content

Notifications

Community site session details

Community site session details

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

MARK filter causing performance issue while using in BC On-Prem

(0) ShareShare
ReportReport
Posted on by 248

Hi,

We have a code that is written on Item Ledger Entry to do some cost calculations in BC14. We have used MARK function to mark records. Then we use those marked records in calculations. On using the marked ones the NEXT function is taking a few seconds on each iteration. The Item Ledger Entry table have around 2 million entries so it makes sense to take time.

But interesting thing is that in NAV 2009 R2 same code is working extremely fast with same dataset.  Is there any difference in the MARK functionality in 2009-R2 and BC 14.

  • Suggested answer
    Bilal Haider Profile Picture
    248 on at
    RE: MARK filter causing performance issue while using in BC On-Prem

    I have found a way to solve this using temporary tables rather than marking.

    I moved the filtered records to a temporary table and then use it in calculations. It make it super super fast.

  • Suggested answer
    Andy Sather Profile Picture
    on at
    RE: MARK filter causing performance issue while using in BC On-Prem

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

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