← All posts

SAP HANA Performance Optimization

SAP HANA Performance Tuning: Project or Retainer?

SAP HANA Performance Tuning: Project or Retainer?

A report that ran in four seconds last quarter now takes forty. A developer added a nested loop to a custom view, and nobody planned the damage. That is why SAP HANA Performance Tuning raises a fair question for every IT director: do you fix the system once, or check it on a schedule?

The answer depends on how fast your environment changes. A stable system with few releases can live on a single project. A busy one needs regular passes. This post helps you decide which model fits your team, and what each one costs you in time, money, and attention.

When Is a One-Off Tuning Project Enough?

A one-off project is enough when your system changes slowly, your pain points are known, and your team can maintain the fixes afterward. You define the scope, fix the worst offenders, hand over documentation, and close the work. It suits stable environments with few releases.

The key word is stable. If your custom code barely moves, performance problems do not return quickly. So a project gives you a clear start, a clear end, and a fixed budget.

Situations where a project works well

  • A migration just finished and you need to clean up the slowest reports.
  • Users complain about three or four specific transactions.
  • Your release cycle is slow, with only a few transports each quarter.
  • An audit or go-live deadline needs a defined result.
  • Your internal team has the skills to keep the fixes alive.

In these cases, the work has edges. You can name the problem, measure it, and prove it is fixed. Finance leaders like that clarity because they can approve a number and close the line item. It also gives the steering group a simple story to tell: here was the pain, here is the fix, and here is the proof that it worked.

What a project cannot do

A project cannot predict future code. It fixes what exists today. However, if your developers ship new custom views next month, the project will not catch the anti-patterns they introduce.

Here is the catch. Teams often treat a successful project as permanent protection. It is not. It is a snapshot of a healthy system on one particular day, and snapshots age quickly. A system that felt fast in March can feel sluggish by September, even though nobody changed the original fixes.

Why Do Anti-Patterns Keep Returning?

Anti-patterns return because every code change, data growth event, and new integration alters how the database behaves. A fix that worked last year may stop working after a new release. Performance is a moving target, not a finished state.

Consider a typical scenario. A finance team adds a custom report that joins five large tables without filters. It runs fine in test with a thin data set. Yet in production, with years of postings behind it, it crawls.

The common sources of new problems

  1. Custom code that pulls far more rows than it needs.
  2. Data volume growth that outpaces earlier sizing assumptions.
  3. New interfaces that fire frequent small queries.
  4. Upgrades that change how the query planner chooses an execution path.
  5. Workarounds added under deadline pressure and never revisited.

None of these show up on a project plan. They arrive quietly, one transport at a time.

Why small problems get expensive

A slow query rarely announces itself. Users adapt first. They run the report before lunch, or they export data to a spreadsheet instead. Months later, the workaround becomes the process, and nobody remembers the report was ever fast.

This is where periodic passes earn their place. A short, scheduled review catches a bad pattern in the month it appears, not after users have lived with it for a year. So fixing one query early costs hours. Fixing a pile of them later costs far more, often several consultant-weeks of effort plus the lost goodwill of frustrated users.

What Does a Retainer Model Look Like?

A retainer is a standing agreement for regular, time-boxed performance reviews and fixes. Each pass checks recent changes, ranks the slowest workloads, and corrects the worst ones. You pay for steady attention instead of a large one-time effort.

The rhythm matters more than the size. Most teams settle on a monthly or quarterly cadence, tied to their release calendar. A team that ships every two weeks leans monthly. Still, a team that releases twice a year can review after each release.

A typical pass, step by step

  1. Review what changed since the last pass, including transports and data growth.
  2. Pull the most expensive statements and rank them by cost.
  3. Identify the anti-patterns behind the top offenders.
  4. Fix the problems or hand clear recommendations to your developers.
  5. Re-measure and record the before and after results.
  6. Update the watch list for the next pass.

Notice that every pass produces evidence. Then you see what improved and by how much. That record also helps you argue for budget, because you can point to hours saved and complaints closed.

How a retainer builds knowledge

A retainer has a side benefit that projects rarely match. The same people see your system month after month. As a result, they learn which tables grow fastest, which teams write the heaviest custom code, and which batch jobs collide at month end.

That memory shortens every later pass. A new consultant needs a long ramp-up to learn your environment. A retained one, by contrast, starts each pass already knowing where to look. Over a year, that saved ramp-up time often covers a good share of the retainer fee.

How Do You Choose Between the Two Models?

Choose a project when change is slow and the problem is defined. Choose a retainer when releases are frequent, data grows fast, or several teams write custom code. Many companies combine both: a project to clear the backlog, then a light retainer to keep it clear.

Use these questions as a quick filter:

  • How many transports reach production each month?
  • Does your data volume grow noticeably every quarter?
  • Do several teams or vendors write custom code?
  • Can your internal staff read execution plans and fix queries?
  • Has the same type of slowdown appeared more than once?

Two or more yes answers point toward a retainer. One or none points toward a project.

Comparing cost and risk

A project looks cheaper on paper because the invoice is smaller and ends sooner. A retainer looks pricier because it never closes. However, the comparison misses the cost of slow systems: lost user time, delayed month-end closes, and emergency calls at midnight. SAP's own Q1 2026 quarterly statement shows how heavily the vendor is investing in its cloud and database platforms, which is one more reason to keep your own environment tuned.

For example, a month-end close that slips by half a day costs more in finance staff time than several retainer passes. So compare the retainer to the cost of repeated firefighting, not to zero.

What Should a Tuning Partner Bring to the Table?

A good partner brings measurement discipline, clear reporting, and the ability to fix problems rather than only list them. Whether you hire for a project or a retainer, the same qualities separate useful help from expensive advice.

Look for a team that treats SAP HANA Optimization as an ongoing practice, not a one-time cleanup. They should show you baselines before any change and results after it. Still, if a vendor cannot prove improvement with numbers, keep looking.

Questions to ask before signing

  1. Will you measure before and after every change?
  2. Who fixes the code: your team, or yours?
  3. How do you rank which problems to tackle first?
  4. What documentation do we keep when the work ends?
  5. Can we scale the engagement up or down after the first quarter?

The strongest SAP Service Provider will answer these plainly and put the answers in writing. Vague replies signal vague results.

Where support services fit

Performance work sits next to daily operations. Incident handling, patching, and monitoring all affect speed. Reliable SAP Support Services connect those tasks to tuning, so a recurring slowdown becomes a ticket with an owner instead of a complaint that fades.

If you already run on SAP ERP software with a managed support contract, ask whether performance passes can sit inside it. Bundling often costs less than buying separate engagements. It also keeps one team accountable for the whole picture. Teams that use a service portal, such as the SAP Service Management Portal, can log findings there so nothing gets lost between passes.

How Do You Plan the First 90 Days?

Plan the first 90 days around baselining, quick wins, and a steady rhythm. Start with a full measurement of your slowest workloads, fix the cheapest high-impact items, and set the cadence for later passes. Therefore, that sequence proves value early and builds trust.

  1. Weeks 1 to 2: capture baselines for top reports, batch jobs, and interfaces.
  2. During the next stretch, from the third week to the sixth, fix the five to ten worst offenders and record the gains.
  3. Between the seventh and tenth weeks, review code standards with your developers and add simple checks to the transport process.
  4. In the final stretch, covering weeks 11 to 13, run the first full pass, then agree on cadence and scope.

Keep developers in the loop

Tuning fails when it feels like an audit. Developers resist findings that arrive as blame. So share the patterns, show the plan costs, and pair each finding with a fix. Over time, developers write better code on their own, and each pass finds fewer repeat problems.

If you are weighing a move to a newer platform, the same discipline applies. SAP describes its S/4HANA platform on its own site, and sizing and code quality decide how well it runs. Teams planning migrations through SAP S/4HANA migration services USA should schedule a tuning pass right after cutover, because fresh data volumes and new code expose problems fast. You can read the vendor's product overview on the SAP S/4HANA product page.

Frequently Asked Questions

Q. How often should we run performance passes on SAP HANA?

A. Match the cadence to your release calendar. Monthly suits teams that ship often, and quarterly suits slower environments. Review again after every major upgrade or data load.

Q. Is a one-time tuning project ever enough?

A. Yes, when your code changes rarely and your team can maintain the fixes. A project also works well right after a migration to clear the worst offenders. Still, expect the benefit to fade if releases pick up.

Q. What does a tuning retainer usually include?

A. It covers regular reviews of recent changes, a ranked list of expensive statements, fixes or recommendations, and a before and after report. Scope varies by provider. 2iSolutions builds each retainer around your release rhythm and agrees the scope in writing.

Q. Can our own developers handle performance work?

A. They can if they know how to read execution plans and have time set aside for it. Many teams lack both, so an outside specialist covers the gap and trains staff along the way.

Q. How do we know the tuning worked?

A. Compare measured run times and resource use before and after each change. A trustworthy partner shares those numbers in every report. Fewer user complaints and faster month-end closes confirm the result.

Choosing a Model You Can Sustain

The project versus retainer question comes down to one thing: how quickly your system changes. Stable landscapes can close the work and move on. Busy ones need regular attention, because new code keeps creating new problems.

Most teams land in the middle. They run a project to clear the backlog, then keep a light monthly or quarterly pass to stop the backlog from returning. Therefore, that mix gives you a clear starting point and steady protection afterward.

2iSolutions works with IT teams that want to size this decision honestly, based on release volume, data growth, and in-house skills. A short assessment of your current workloads is the practical first step, and it shows which model fits before you commit budget. It also gives your finance and engineering leads one shared set of numbers to plan around, which makes the budget conversation far easier.

Email us at [email protected] to request a demo of AI performance optimization.

Want this applied to your SAP estate?

Tell us where you are and we'll come back with a concrete next step.

Talk to our team