Closed Drakonian closed 4 months ago
We cannot help you if you do not have a partner account. Try with the repos for AL developers (e.g the repo for the system application) . Maybe they have better ideas and experience. Nevertheless it is not for this repo.
Please include the following with each issue:
1. Describe the bug NumberSequence is slowest way to get next number in Cloud Business Central. Each NumberSequence.Next take 3ms
In my analysis, I came to the conclusion that the issue is a slow hard disk for Cloud Business Central.
One of the possible ways to improve performance it's to add CACHE parameter upon NumberSequence.Insert In this case we can reduce number of IOs for SQL Server NumberSequence object
More information in article https://vld-nav.com/number-generation-performance-cloud
I don't have partner account, so if you think this isn't the right place, I won't be able to create a ticket.
2. To Reproduce Steps to reproduce the behavior:
Create number sequence and call it in loop in Cloud Business Central.
3. Expected behavior It should work at least faster than Rec.Modify()/UPDATE statement in AL/SQL.
4. Actual behavior It's super slow.
5. Versions:
Latest available Cloud Business Central