Performance Part 2: The Database-First Rule
Preview · a free account unlocks the full lesson
Apply the database-first rule: read only needed rows and columns, use full keys and indexes, avoid repeated identical reads, aggregate in the database, use buffering where appropriate, and understand why database round trips dominate most ABAP runtimes.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 1 covered how to measure performance; this lesson covers the principles that actually fix most of what those measurements find. Most ABAP performance problems trace back to database access: too many round trips, too many rows returned, too many columns selected, or a failure to use the right index.
Five rules cover most of it: keep round trips few, keep rows few through a good WHERE clause, keep columns few by using a field list instead of SELECT *, make sure indexes and keys are actually used, and let the database do aggregation rather than pulling everything into ABAP to sum it there.
Table buffering, configured in SE11's technical settings, makes reads of small, rarely changed tables — typically customizing tables — nearly free, but certain statements bypass the buffer entirely and quietly lose that benefit.
One particularly costly pattern: SELECT * on a wide table like VBAP or MARA, which can have hundreds of fields, moves a large amount of unneeded data across, which is especially expensive inside a loop and on HANA's column store.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.