Number Sequence Optimization in Microsoft Dynamics 365

Overview

Incorrectly configured parts of code are certainly bothersome to customers trying to get the most out of finance and operations applications, especially true regarding Microsoft Dynamics 365 users. They cause great variety of problems, most notably performance drops during daily Dynamics 365 process execution, when handling large amounts of data without proper previous configuration. Since number sequences are mostly configured to facilitate everyday usage, they are often subject to contention. In this article, we will look at ways to determine if number sequences are causing performance drops and what can be done to remedy particular problems.

Identifying contention

One way to make sure certain code strings are causing trouble is using Lifecycle Services or Query Store and looking at most resource-intensive queries. The following query (and for that matter, all code in this article) was provided by Steven Koppins, Solution Architect at Microsoft:

Illustration

As he writes in personal Dynamics 365 blog, if the above query takes too much time computing, you most likely have configuration issues.Another method to identify bottlenecks is comparing TNC parameters before and after any test run. Usually, internal strings like IDs are ignored and set up without preallocation, which is suboptimal, since internal number sequences are quite demanding of your machine’s resources.

Identifying problematic parts

Once you have found the bottleneck, it is important to learn exact numeric series causing it. Launch a Dynamics 365 sandbox, import the problem database and run these SQL statements in AXDB, which will list number sequences based on usage in descending order. Most commonly used patterns are likely causing performance issues.

Illustration

Continuous consumption

Illustration

Non-continuous consumption

Configuring non-continuous patterns

Unless non-continuous number sequences are used, there is no chance of optimizing performance. We recommend thinking about your business requirements before using continuous ones. Learn more about their differences by reading official Microsoft Dynamics 365 documentation.A frequent problem is unspecified Quantity of numericals during preallocation. There is no easy ratio, but following table should give you general idea of settings to use.

Illustration

This is based daily usage, however, if you plan to migrate significant data amounts, a higher value for Quantity is expected. If such large data transfer is one-time only, make sure to reset to default daily values afterwards.

In conclusion

The article outlines several ways to check for performance issues spawned by number sequences and covered a few simple ways to lessen impact of bottlenecks on performance.
Still, since good Dynamics 365 support is imperative for any successful organization, we advise hiring professionals for specific optimization tasks. DR Dynamics specialists are always ready to help. From system assessment and detailed performance reviews to business process optimization, our specialists bring forth all Dynamics 365 support necessary. DR Dynamics offers distinct plans to suit your needs and budget. If you are interested about how we can assist, contact us here.
We are eager to find out more about your firm and are always ready to demonstrate how our customized Dynamics 365 support solutions will develop your workplace effectiveness.