ERPClimb logoERPClimb
BW Queries
BW / Analyticsintermediate 7 min read

Tuning BEx Query Runtime: Read Modes, OLAP Cache and Aggregation Behavior (Part 3)

Preview · a free account unlocks the full lesson

Key takeaway

Learn how BEx query read mode, OLAP cache settings, and aggregation/exception aggregation choices affect query runtime performance, and how to diagnose slow queries using standard BW tools.

In this lessonShow sections

Visual overview

Tuning BEx Query Runtime: Read Modes, OLAP Cache and Aggregation Behavior (Part 3) — learning sheetIn one line: Learn how BEx query read mode, OLAP cache settings, and aggregation/exception aggregation choices affect query runtime performance, and how to diagnose slow queries using standard BW tools.ERPClimb.com / BW / LESSON 3/4 / LEARNING SHEETTuning BEx Query Runtime: Read Modes, OLAP Cache andAggregation Behavior (Part 3)1 · IN ONE LINELearn how BEx query read mode, OLAP cache settings, and aggregation/exception aggregationchoices affect query runtime performance, and how to diagnose slow queries using standard BWtools.2 · KEY IDEAS EXPLAINED1Once queries are functionally correct, the nextchallenge in real BW projects is runtimeperformance, especially when reports are consumeddaily by hundreds of users in Analysis for Office,BEx Web Applications, or embedded into Fiori/BItools. Query performance in classic BW (on HANA or…2Read mode determines how much data the OLAPprocessor pulls from the database versus keeps inmemory for navigation. The three standard optionsare: read when navigating/expanding (data isfetched from the database only as the user drillsdown or expands hierarchy nodes), read all data at…3The OLAP cache stores previously computed queryresult sets so that identical or overlappingrequests (same query, same variable values, samenavigational state) can be served withoutrecalculating from the InfoProvider. Cache mode isset at the query (or InfoProvider) level and…4Exception aggregation (aggregating a key figureusing a different aggregation function than sum,such as last value, average, or count, evaluatedwith respect to a specific characteristic likecalendar month or customer) is functionallyimportant but performance-sensitive because it…3 · DO · AVOIDBest practice!Common mistakeSet read mode based on actual user navigationpatterns observed in usage statistics, not by…Prefer cross-user OLAP cache where securitypermits, and understand which variable types…Include explicit cache-invalidation orcache-refresh steps in process chains…✕Assuming a slow query is always anInfoProvider or data volume problem without…✕Using customer exit variables unnecessarily,which can disable cross-user OLAP caching and…✕Applying exception aggregation broadly acrossmany key figures without evaluating the…4 · IN A REAL PROJECTA finance reporting query used company-wide showed 25-second runtimes after month-end close. Using RSRT, thesupport team found the query was set to read all data at once with cross-user cache disabled because the queryused a customer-specific exit variable, which by design bypasses cross-user caching. The team restructured the…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Once queries are functionally correct, the next challenge in real BW projects is runtime performance, especially when reports are consumed daily by hundreds of users in Analysis for Office, BEx Web Applications, or embedded into Fiori/BI tools. Query performance in classic BW (on HANA or non-HANA databases) is governed by three interacting layers: the query definition itself (structures, variables, exception aggregation, hierarchies), the read mode configured for the query, and the OLAP cache that sits between the query and the InfoProvider.

Read mode determines how much data the OLAP processor pulls from the database versus keeps in memory for navigation. The three standard options are: read when navigating/expanding (data is fetched from the database only as the user drills down or expands hierarchy nodes), read all data at once (the entire result set for the initial view is read immediately, favoring subsequent navigation speed at the cost of a heavier first hit), and a hierarchy-aware variant that only reads data for expanded hierarchy nodes.

Choosing read mode is a trade-off: reports with wide, rarely-navigated initial views and users who mostly consume a fixed layout benefit from 'read all data,' while reports with deep drill paths and large master data volumes often perform better with navigational reads, since fetching everything upfront can be slower than needed for most user sessions.

The OLAP cache stores previously computed query result sets so that identical or overlapping requests (same query, same variable values, same navigational state) can be served without recalculating from the InfoProvider. Cache mode is set at the query (or InfoProvider) level and ranges from no caching to cross-user caching where multiple users requesting the same variant benefit from a single cached result, subject to authorization checks so that the cache still respects security.

Free account

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
  • 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

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.