SYAGA.

Sage X3 slowed down since the 2024R2 or 2023R1 migration: what happened?

The scenario is a classic one: the migration went smoothly, everyone signed off on acceptance testing, and a few days later users report that it is slower than before. A Sage X3 version upgrade, or an update of the SQL Server that hosts it, changes the execution environment. When performance degrades right afterwards, the cause is almost always identifiable, provided you look in the right place rather than rolling back in a panic.

What a migration really changes under the hood

A version upgrade or an SQL server change affects more than the visible features. Several invisible settings move at the same time:

  • The database compatibility level can be repositioned, which activates a query optimiser with different behaviour.
  • The statistics are often rebuilt or invalidated, and until they are up to date, the optimiser chooses sub-optimal plans.
  • The cached execution plans are flushed on restart: the first passes recompile everything, and some plans start down a bad path that then freezes.
  • The Sage X3 tuning parameters and the server configuration may have been reset to default values during the operation.

Each of these points can, on its own, tip a fast query into a slow one. This is why a post-migration regression almost never has a single culprit: it has to be measured.

How to prove the regression instead of suspecting it

The good news is that SQL Server keeps a record of the before and the after. The Query Store logs, for each query, its various execution plans and their cost over time. So you can compare a query as it ran before the operation and as it has run since, and see in black and white whether it changed plan and whether that plan costs more.

X3 Optimizer reads this history over a representative period, ranks queries by processor time actually consumed, and isolates those that weigh the most since the migration. Each suggestion is given a degree of proof and an owner: some regressions are fixed on the database side (statistics, indexes, compatibility level), others on the specific code side when a version upgrade changed the behaviour of an in-house process.

The offending line shown, not assumed

When the cause is in the L4G code, the internal decompiler in X3 Optimizer reads the code that actually runs and points to the line concerned when an engine trace proves it.

On a production instance, an automated process triggered a status read called thousands of times where a few dozen would have been enough. The root cause was proven by reading the decompiled code, not guessed. This is exactly the kind of hidden overhead, invisible in day-to-day use, that a migration can bring out or make worse.

Do not fix blind

The temptation after a performance-botched migration is to change everything at once: revert the compatibility level, rebuild every index, modify several parameters. That is the surest way never to know what worked. X3 Optimizer applies a strict protocol: one change at a time, at least three measurements before and after, archived results, a rollback script ready. SYAGA diagnoses and recommends read-only; applying the fixes is the job of your integrator or your teams, and the gain is announced only once it is measured.

Did your Sage X3 slow down after a migration?

A short conversation is enough to say whether the cause is on the database or the code side, and how to prove it. Read-only, with no commitment.

Talk to an expert