CompositeProvider Runtime Behavior, Query Performance and Troubleshooting (Part 3)
Preview · a free account unlocks the full lesson
Understand how CompositeProvider queries execute at runtime, how union and join operations affect performance, and how to diagnose and resolve slow or incorrect query results in production.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Once a CompositeProvider is designed and activated, its real value is tested at query runtime. Unlike a MultiProvider, which always performs a union and pushes aggregation down to each underlying InfoProvider before combining results, a CompositeProvider can mix union and join semantics within a single object, and it executes on the HANA calculation engine rather than the classic BW OLAP engine alone. This means performance characteristics differ meaningfully from classic BW objects, and consultants need a mental model of how the generated HANA calculation view behaves.
When a query runs against a CompositeProvider, BW generates SQL that is pushed to HANA. For union parts, HANA typically executes each branch independently and merges results, similar to a MultiProvider, but with the advantage of in-memory columnar processing and reduced data movement.
For join parts, the join is evaluated at the granularity of the CompositeProvider definition, which means if the join cardinality is not correctly set (for example, an unintended many-to-many relationship), the result set can silently multiply rows, causing inflated key figures.
This is one of the most common production defects: a report showing revenue three times higher than expected because a join between a sales ADSO and a returns ADSO was modeled without a proper cardinality constraint or without pre-aggregating one side.
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.