ERPClimb logoERPClimb
BW Performance
BW / Analyticsintermediate 9 min read

Query Runtime Optimization: Read Mode, Aggregates, and OLAP Cache Strategy (Part 6)

Preview · a free account unlocks the full lesson

Key takeaway

Learn how BEx query read mode, aggregates/HANA views, and the OLAP cache interact to determine reporting speed, and how to choose the right combination for different InfoProvider and usage patterns.

In this lessonShow sections

Visual overview

Query Runtime Optimization: Read Mode, Aggregates, and OLAP Cache Strategy (Part 6) — learning sheetIn one line: Learn how BEx query read mode, aggregates/HANA views, and the OLAP cache interact to determine reporting speed, and how to choose the right combination for different InfoProvider and usage patterns.ERPClimb.com / BW / LESSON 6/7 / LEARNING SHEETQuery Runtime Optimization: Read Mode, Aggregates, andOLAP Cache Strategy (Part 6)1 · IN ONE LINELearn how BEx query read mode, aggregates/HANA views, and the OLAP cache interact todetermine reporting speed, and how to choose the right combination for differentInfoProvider and usage patterns.2 · KEY IDEAS EXPLAINED1Query runtime performance in SAP BW is governed bythree interacting layers: the query read mode (howmuch data is fetched from the database versus heldin application buffers), the underlyingInfoProvider's physical or virtual aggregationsupport (aggregates in classic BW, or…2Read mode is set at the query level (via queryproperties in BEx Query Designer, or defaultedfrom InfoProvider settings) and has threevariants: read data during navigation only (H),read data during navigation and expansion (X), andread all data at once (A). Mode H is generally…3Aggregates in classic BW (non-HANA) are physicallymaterialized, pre-aggregated subsets of anInfoCube, selected based on characteristiccombinations frequently used in queries. They arebuilt and refreshed via process chains and must bekept in sync with the base cube; a stale or…4The OLAP cache sits above both layers: it storesthe result of query navigation steps in the BWapplication server (or, in HANA-optimizedscenarios, leverages database-side caching moredirectly) so that repeated identical oroverlapping navigation requests do not have to be…3 · DO · AVOIDBest practice!Common mistakeAlways validate actual query behavior via RSRTtechnical debug/statistics before changing…Set read mode based on how users actuallynavigate the report (summary-first drill-down…Monitor aggregate validity as part of standardprocess chain checks, since invalid aggregates…✕Leaving read mode at the InfoProvider defaultwithout evaluating actual navigation patterns…✕Assuming an aggregate is being used withoutverifying via RSRT technical debug output✕Not noticing that a modified InfoCube ortransformation has invalidated an aggregate…4 · IN A REAL PROJECTA retail customer's regional sales dashboard, built on a large InfoCube with several years of daily saleshistory, took over 45 seconds to render on first open but was fast on subsequent identical navigations. UsingRSRT with debug and statistics enabled, the team found the query was configured with read mode A (read all…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Query runtime performance in SAP BW is governed by three interacting layers: the query read mode (how much data is fetched from the database versus held in application buffers), the underlying InfoProvider's physical or virtual aggregation support (aggregates in classic BW, or HANA-optimized views/CompositeProviders in BW-on-HANA and BW/4HANA), and the OLAP cache that stores previously computed result sets in the application server.

Getting this combination wrong is one of the most common causes of slow dashboards and timeouts in production BW systems, even when the underlying data volumes are moderate.

Read mode is set at the query level (via query properties in BEx Query Designer, or defaulted from InfoProvider settings) and has three variants: read data during navigation only (H), read data during navigation and expansion (X), and read all data at once (A). Mode H is generally recommended for large, wide reports where users drill down selectively, because it avoids pulling unnecessary detail rows into the OLAP engine.

Mode A can be beneficial for small, frequently reused result sets where a single full read followed by cache reuse outperforms repeated partial reads, but on large cubes it can cause the initial query execution to be very expensive and generate excessive temporary memory usage.

Aggregates in classic BW (non-HANA) are physically materialized, pre-aggregated subsets of an InfoCube, selected based on characteristic combinations frequently used in queries. They are built and refreshed via process chains and must be kept in sync with the base cube; a stale or invalid aggregate causes the OLAP processor to fall back to the base cube silently, which can look like a performance regression with no visible error.

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

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.