Skip to main content
atoti.AggregateProvider(
    *,
    filter: AggregateProviderFilterCondition | None = None,
    key: AggregateProviderPluginKey = 'leaf',
    levels: Annotated[AbstractSet[Identifiable[LevelIdentifier]], Field(min_length=1), AfterValidator(validate_hierarchy_unicity)] | None = None,
    measures: Annotated[AbstractSet[Identifiable[MeasureIdentifier]], Field(min_length=1)] | None = None,
    partitioning: str | None = None,
)
An aggregate provider pre-aggregates some measures up to certain levels. If a step of a query uses a subset of the aggregate provider’s levels and measures, the provider will speed up the query. An aggregate provider uses additional memory to store the intermediate aggregates. The more levels and measures are added, the more memory it requires.
Pre-aggregating all measures:

Attributes

filter

Only compute and provide aggregates matching this condition.

key

The key of the provider. The bitmap is generally faster but also takes more memory.

levels

The levels to build the provider on. If a passed level is part of a multilevel hierarchy, all shallower levels will be pre-aggregated too. If None, all eligible levels will be pre-aggregated.

measures

The measures to build the provider on. If None, all eligible measures will be pre-aggregated.
This collection cannot contain any measure created from a column in a partially joined table.

partitioning

The partitioning of the provider. Default to the partitioning of the cube’s fact table.