← All guides

Statement Calculation Gets Slower Every Month: Data Volume Fixes That Work

Troubleshooting · 5 min read · By Dex Carter · Published 2026-10-26 · Last updated 2026-10-26

A tall database stack and scattered transaction slips beside a large clock, a wrench and a gauge
Growing data volume, measured monthly, is what turns calculation time into a trend.

Why does statement calculation take a little longer every single month, on the same hardware, with the same staff? Because the job is not the same job. Underneath it, the transaction and ledger volume grows with every trading day, and calculation works through that volume. The fix is rarely one setting. It is a runbook, worked in order: shrink the entries the work creates, spread the work out, maintain the database underneath, and measure each step against the same batch.

Note: this guide is general information about performance maintenance, not a substitute for your partner's advice on your specific database and licensing setup.

Measure first: time one statement batch and count what it creates

Every later decision depends on a baseline, so take one before changing anything.

  1. Pick a representative statement batch: one store, one normal trading period, no unusual events.
  2. Time its calculation from start to finish and write the number down, with the date.
  3. Count what the batch touches and creates: the statements in it, and the Item Ledger Entries its posting produces.
  4. Repeat the same measurement after each fix in this runbook, on a comparable batch. A fix that cannot move this number has not fixed the problem, whatever it changed elsewhere.

The vendor numbers later in this article show why the baseline matters: improvements are real but partial, and they stack. Without a starting time, there is no way to tell which lever did the work.

Fix the volume: Aggregated Inventory and what the aggregation rate really buys

The first lever reduces the entries themselves. Aggregated Inventory consolidates sales from all store locations into one aggregated location, creating a single Item Ledger Entry per item instead of one per store. Fewer entries means less for calculation, adjustment, and posting to work through, every run, permanently.

The LS help example makes the scale concrete: 200 Item Ledger Entries become 10, an aggregation rate of 95%. The same help notes that a higher aggregation rate means less time adjusting and posting inventory costs. Read that example as an illustration of the mechanism, not a promise for any given store: the rate a store achieves depends on how its sales spread across locations and items. The decision test is the baseline from step one. Measure entries per batch before and after; the reduction in entries is the benefit, stated in numbers the store produced itself.

Trade-off, stated plainly: aggregated entries are consolidated by design. A store that relies on per-store ledger detail for its own analysis should weigh that loss of granularity against the time saved, before switching.

Spread the work: parallel sessions and scheduler timing

The second lever spreads the same work across more sessions and more of the day. A partner report on LS Central 17.4 gives the clearest measured picture available. In the LS lab measurement it reports, the original code took 100 minutes to post 100 statements. Improved code reduced that to 85 minutes. With six parallel sessions, the total fell to 58 minutes, a 42% improvement. Those are lab figures from a release report, not a guarantee, but they establish the shape of the win: parallel sessions are the larger lever, larger than the code improvement alone.

Scheduling is the other half of spreading. Scheduler automation for statements uses codeunit 99001479 (Statement, Auto Calculate) and codeunit 99001459 (Schedule Batch Posting), and, with aggregation, codeunit 10059485. The same partner report notes that calculation time can be spread across the business day, minimising waiting time for the last calculation of the day. In practice that means the end-of-day peak, the calculation everyone waits on, shrinks when earlier calculation has already happened during trading hours.

LeverReported effectSource of the figure
Improved posting code (LS 17.4)100 statements: 100 min to 85 minLS lab measurement, reported by Naviworld
Six parallel sessions100 statements: down to 58 min (42% improvement)Same lab measurement
Aggregated InventoryExample: 200 Item Ledger Entries become 10 (95% rate)LS Central help, Statement Posting

Maintain the database: indexes and statistics on the big retail tables

The third lever is database maintenance, and it applies most directly to on-premise SQL databases. High-volume retail databases accumulate index fragmentation rapidly, and a fragmented index on the Item Ledger Entry or transaction tables can make lookups 5 to 10 times slower. The guidance from that partner source is specific: rebuild indexes above 30% fragmentation, reorganise at 10 to 30%, and schedule heavy full-replication jobs in overnight windows rather than letting them compete with trading and calculation.

A Dynamics Community answer on suddenly slow Business Central reports points the same way: the usual causes are data growth, outdated statistics, or fragmented indexes on large tables such as Item Ledger Entry and Value Entry, and the suggested first steps are to update SQL statistics, rebuild indexes, and check which table consumes the time. Neither source was written about statement calculation specifically, so treat this section as a well-supported hypothesis to test against the baseline, not a proven cure. If fragmentation is low and statistics are current, this lever buys little, and the baseline measurement will say so.

Decide what to archive or compress when growth still wins

If aggregation, parallel sessions, and index maintenance are all in place and the monthly creep continues, the remaining decision is about the data itself. Use this framework:

The monthly check: five numbers that warn you before it hurts

  1. Calculation time for the standard baseline batch.
  2. Item Ledger Entries created by that batch.
  3. Aggregation rate achieved, where Aggregated Inventory is in use.
  4. Fragmentation on the Item Ledger Entry and transaction table indexes.
  5. Number of statements in the largest single end-of-day run, as a check that work is spreading across the day.

Five numbers, once a month, turn a slow surprise into a visible trend with a runbook attached.

, Dex Carter, Tech Writer

IndexBack to all guides →