Query Runtime Optimization: Read Mode, Aggregates, and OLAP Cache Strategy (Part 6)
Preview · a free account unlocks the full lesson
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 sectionsHide sections
Visual overview
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.
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.