Custom code never stands still, and neither do the problems it creates. A report that ran in four seconds last spring now takes four minutes, because someone added a nested loop during a quarter-end fix. Teams that plan SAP performance optimization well know a hard truth: new anti-patterns appear every time custom code changes. The real planning question is whether you tackle performance as a one-off project or build a retainer around it, and SAP Implementation and Support providers see both models succeed and fail.
This post gives you a practical way to decide. 2iSolutions, a Toronto-based SAP partner serving Canadian clients, sees both models work. However, it also sees both fail when companies pick the wrong one.
What Is the Difference Between a Performance Project and a Retainer?
A performance project is a fixed-scope engagement with a start date, an end date and a defined set of fixes. A retainer is an ongoing arrangement where specialists review, measure and tune your SAP system at regular intervals. The project fixes what is broken today. Meanwhile, the retainer catches what breaks tomorrow.
Think of it like a house. A project is the renovation after a flood. A retainer is the annual inspection that finds the leak before the flood.
Neither model is better by default. Each fits a different pattern of change in your system.
What a project does well
A project works best when the problem is known and bounded. For example, your month-end close runs six hours longer than it should, and a trace points to three custom programs and one badly indexed table. A focused team can fix those, test them and hand back a faster system.
Projects also suit moments of planned change. A platform move, a release upgrade or a major data growth event all create a natural before-and-after window.
What a retainer does well
A retainer works when the system keeps changing. Developers ship transports every sprint, and each transport can introduce a slow database call or an unnecessary loop. Without regular review, those small costs add up until users complain.
A retainer also builds memory. As a result, the same specialists see your system repeatedly, so they spot drift faster than a new team starting from scratch each time.
When Is a One-Off Project Enough?
A one-off project is enough when your custom code changes rarely, your data volumes grow slowly and the performance problem has a clear, traceable cause. In those conditions, a single well-scoped engagement fixes the issue, and the gains can last for years without further outside help.
Be honest about the conditions. A stable system with a small development team and few transports each month rarely needs continuous attention. Paying for a retainer there wastes budget.
Signs a project fits your situation
- Your last major custom development finished more than a year ago.
- The slowdown has one or two identifiable causes, such as a specific report or interface.
- You are preparing for a platform change and want a clean baseline first.
- Your internal team can monitor basic health between engagements.
If most of these describe your system, plan a project and set a review date for twelve months out.
What a good project delivers
A strong project does not end with “it feels faster.” Instead, it ends with measured results. The team records response times, database load and job runtimes before the work starts. After the fixes, it records them again under the same conditions.
That comparison matters. If results differ from what the team predicted, work stops and the team investigates the gap. Nobody should sign off on a fix that cannot prove its effect.
Why Custom Code Keeps Creating New Performance Problems
Custom code creates new performance problems because every change adds a chance for a new anti-pattern. An anti-pattern is a common coding or design habit that looks reasonable but reliably causes slow, resource-heavy behaviour. Fresh developers, tight deadlines and copied snippets keep producing them.
Here are the patterns that show up most often in custom programs:
- Database reads placed inside loops, so one report fires thousands of small queries instead of one.
- Selecting every column of a wide table when the program needs two fields.
- Sorting or filtering large datasets in application memory instead of in the database.
- Missing or unsuitable indexes on tables that custom reports query heavily.
- Interfaces that poll for changes every minute rather than reacting to events.
None of these look dangerous in a development system with a few hundred test records. Still, they surface in production, months later, when real volumes arrive.
How fast a fix can go stale
Imagine a team cleans up fifty slow programs in a project. So six months later, three developers have added forty new custom objects. Some of those objects repeat the same habits the project removed.
The clean-up was not wrong. It simply had no mechanism to hold the line. A retainer supplies that mechanism through regular code reviews and runtime checks on new transports. For a broader view of the options companies weigh here, this market overview of SAP optimization summarizes how the choices compare.
How Does a Retainer Actually Work Month to Month?
A performance retainer works as a repeating cycle of measurement, review and correction. Specialists pull runtime statistics, compare them against a baseline, flag regressions and fix or advise on each one. The cycle runs monthly or quarterly, depending on how quickly your system changes.
Here is a typical cycle in practice:
- Collect workload data, including the slowest dialog steps, batch jobs and database statements.
- Compare the results with the previous cycle and the agreed baseline.
- Review recent transports for known anti-patterns before and after they reach production.
- Fix or recommend fixes for the top regressions, ranked by business impact.
- Report results in plain language that finance and operations leaders can read.
What to put in the retainer agreement
Vague retainers drift into expensive status meetings. Protect yourself with specifics. Define the systems in scope, the review frequency and the reporting format. Agree on how many hours of fixing work sit inside the fee and how extra work gets approved.
Also name the measures that matter to your business. A retailer might track checkout-related response times. A manufacturer might track material requirements planning run duration. When the measures reflect real business pain, the retainer stays relevant.
How Do You Decide Between the Two Models?
Decide by looking at how quickly your system changes, how large your data grows and how much performance matters to revenue. High change and high stakes point to a retainer. Low change and a clear cause point to a project. Many companies land in between and combine both.
Ask yourself these questions before you sign anything:
- How many custom transports reach production each month?
- Does your user base or data volume grow noticeably every quarter?
- What does one hour of slowdown cost you during peak periods?
- Does your internal team have the skills to review code for performance?
- Are you planning a migration or upgrade in the next eighteen months?
The hybrid approach most teams end up using
The most practical pattern is a project first, then a lighter retainer. The project clears the existing backlog of slow programs and sets a measured baseline. Then the retainer protects that baseline at a modest cost.
This sequence also makes the retainer easier to justify. You already have proof of what the work delivers, so the budget conversation rests on results rather than promises.
What Changes When You Move to a Newer SAP Platform?
A platform move changes performance work because database behaviour, data models and standard processes all shift. Custom code that ran fine on one platform can slow down or break on another. Therefore, performance planning belongs inside the migration plan, not after it.
Companies planning an SAP S4HANA implementation Canada wide often find that older custom code needs review before the move. In-memory databases reward code that pushes work down to the database. However, they punish code that pulls huge datasets into application memory. Programs written for older systems often do the second.
You can read more about the platform itself on the official SAP S/4HANA product page, which outlines the architecture your custom code will run against.
Performance checkpoints during a migration
Build performance checks into each stage of the move rather than saving them for the end:
- Before the move, scan custom code and rank programs by usage and runtime.
- Retire unused custom objects so you do not pay to convert them.
- During testing, run realistic data volumes, not small samples.
- After go-live, monitor closely for the first quarter and fix regressions quickly.
Many teams find that this is where a retainer starts naturally. Consequently, the migration team hands the system to a performance team that already knows its history.
Choosing a Partner for Ongoing Performance Tuning
Choose a partner who can show measured before-and-after results, explains findings in plain language and understands your business processes, not just your code. Technical skill matters, but a partner who cannot link a slow program to a business cost will struggle to win budget for fixes.
Look for a SAP Service Provider that works across the full lifecycle. Performance problems rarely sit in isolation. They connect to configuration, data quality, interfaces and security. A team with broad SAP Services experience can trace a slowdown to its real cause instead of treating symptoms in one area.
Questions to ask before you hire
- Can you show anonymized examples of measured improvements?
- Who will review our code, and how much SAP experience do they have?
- How do you report results to non-technical leaders?
- What happens when you find a problem outside the agreed scope?
Pay attention to how candidates answer the last question. A good partner explains the options and costs openly. A weak one hides scope gaps until the invoice arrives.
Where support and performance meet
Day-to-day support teams see slowdowns first, because users call them. When support and performance work sit with the same group, tickets feed directly into the review cycle. That is why many Canadian companies bundle performance work with SAP Implementation and Support arrangements. The pattern of repeated tickets shows exactly where to look next.
Frequently Asked Questions
Q. What is SAP performance optimization?
A. SAP performance optimization is the practice of measuring and tuning an SAP system so that transactions, reports and batch jobs run faster and use fewer resources. It covers custom code, database settings, interfaces and configuration. The goal is a system that supports the business at peak load.
Q. How often should we review SAP performance?
A. Systems with frequent custom releases benefit from monthly or quarterly reviews. Stable systems can manage with an annual review or a review before major changes. The right rhythm follows how often your code and data change.
Q. Can a project and a retainer work together?
A. Yes, and this is the most common pattern. A project clears the existing backlog and sets a baseline, then a smaller retainer protects those gains. 2iSolutions often structures engagements this way for Canadian clients.
Q. What should a performance report include?
A. A useful report shows baseline measures, current measures, the causes of any regressions and the fixes applied. It should also rank open issues by business impact. Plain-language summaries help finance and operations leaders approve the next round of work.
Q. When should performance planning start in a migration?
A. Start before the move, during the code scan, so you retire unused objects and flag risky programs early. Waiting until after go-live means users find the problems first. Early planning also keeps cutover dates more predictable.
Matching the Model to the Way Your System Changes
The choice between a project and a retainer comes down to one question: how fast does your system change? Slow change and a known cause favour a one-off project. Constant change, growing data and high business stakes favour ongoing review. Most companies sit between those poles and do best with a project first and a lighter retainer after.
Whatever you pick, insist on measured results. Baselines, repeatable tests and plain-language reports keep the work honest and the budget defensible. Without them, even good fixes become unprovable, and performance work gets cut at the next budget review.
Email us at info@2isolutions.com to request a performance review.