Blog

ASO, BSO and hybrid cubes in Planning: how to choose

Every Planning (formerly PBCS) application design has to answer the same question early: which cubes are block storage, which are aggregate storage, and does the block storage cube use hybrid aggregation? The answer shapes performance, the business rules you can write and how data moves between cubes, so it is worth getting right in the design workshop rather than discovering it in testing.

The three options in one paragraph each

Block storage (BSO) stores data in blocks, one per combination of sparse members, each holding every combination of the dense members. It is built for input and calculation: calc scripts, Groovy rules that return calc scripts, member formulas and allocations all run here. Its weakness is aggregation: rolling up large sparse dimensions creates many upper-level blocks and takes time.

Aggregate storage (ASO) stores level 0 data and aggregates at query time, helped by stored aggregate views. It handles very large, very sparse data well and needs no aggregation rule after every load. It doesn't run calc scripts: formulas are written in MDX, and calculations use ASO custom calculations and allocations instead.

Hybrid BSO is block storage in which the upper levels of sparse dimensions are dynamic: they are calculated when someone queries them instead of being stored. You keep BSO's calculation model for level 0 and lose most of the aggregation time and database growth. Hybrid is now the usual starting point for a Planning input cube in EPM Cloud.

Feature matrix

BSOHybrid BSOASO
Data entry from formsYesYesLevel 0 only
Calc scripts and business rulesYesYesNo (custom calculations and allocations instead)
Member formulasCalc syntaxCalc syntaxMDX
Sparse aggregationStored, needs AGG/CALC DIMDynamic at query timeDynamic, with aggregate views
Very large sparse dimensionsStrugglesBetterBest
Database growth from aggregationHighLowLow
Query speed at upper levelsFast once aggregatedDepends on the size of the dynamic regionFast with good aggregate views
Typical roleInput, detailed calculationInput and calculation, the defaultReporting, consolidated views

The questions that decide it

Ask these in the design workshop and write the answers down as decisions:

  1. Will users enter data here, and at what level? Input at upper levels, or complex input-driven calculations, points to BSO or hybrid.
  2. What calculations run on save? Allocations, driver-based calculations and anything procedural belong in a block storage cube.
  3. How big are the sparse dimensions? Tens of thousands of products or cost centres, combined with entities and customers, is where traditional BSO aggregation hurts and hybrid or ASO helps.
  4. Who reads the cube, and how? Executives slicing a whole year across every dimension want an ASO reporting cube.
  5. How often does the data change? Frequent loads with immediate reporting expectations favour designs without long aggregation steps: hybrid or ASO.

Working with hybrid: the details that bite

Hybrid removes most aggregation work, but a few habits from traditional BSO have to change:

  • Don't aggregate dynamic sparse dimensions. AGG on a dimension whose upper levels are dynamic does nothing useful and costs time. Aggregate only the dimensions that are still stored.
  • Calc scripts reading upper levels. Whether a calc script sees dynamic upper-level values is controlled by SET HYBRIDBSOINCALCSCRIPT (see the calc script functions reference). If a rule's result differs from what a form shows for the same intersection, check this first.
  • Big dynamic regions are slow to query. A form that shows the top of three large dynamic dimensions at once asks Essbase to aggregate everything underneath on the fly. Design forms to open at a sensible level.
  • Dynamic formulas and solve order. Member formulas on dynamic members calculate at query time; solve order decides which formula wins at an intersection of two dynamic members. Test ratios and percentages at upper levels explicitly.

Working with ASO: the details that bite

  • Level 0 only. Users can enter data only at level 0. Plans entered at upper levels belong in a block storage cube.
  • No calc scripts. Rules written for BSO don't port. Use ASO custom calculations and allocations, or calculate in the BSO cube and move the result.
  • MDX formulas. Formulas on ASO members are MDX expressions. They're powerful, but slow ones show up as slow reports, so keep heavy logic out of the formulas reporters hit most.
  • Aggregate views. After large loads, aggregate views keep upper-level queries fast. Make building them part of the load process.

The pattern most applications end up with

For most Planning applications the design that works is a hybrid BSO input cube and an ASO reporting cube:

  • Planners enter and calculate in the hybrid cube, where business rules run.
  • A Smart Push on the form sends the changed slice to the ASO cube right after save, so reports reflect the change within seconds. A data map moves larger regions on a schedule.
  • Reporting, dashboards and ad hoc analysis read the ASO cube, which handles the full dimensionality without slowing down input.

The trade-off is a second cube to maintain and keep aligned: dimensions, mappings and the push definitions. Record which members exist in which cube and why, because "why isn't this account in the reporting cube?" will be asked.

Where EPM Agent fits

Cube design is a set of decisions made in workshops and revised as the project learns. EPM Agent keeps each decision as a reviewed fact with its source, so the reason a dimension is dynamic or a cube is ASO is still on record when someone asks months later. See how project knowledge works, or the Groovy cookbook for Smart Push examples.

See EPM Agent on a project like yours.

A fictive engagement end to end: a meeting, the knowledge it creates, and the artifacts built from it.