Skip to content

docs: recipe for matching multi-stage measures in pre-aggregations#10900

Open
mintlify[bot] wants to merge 5 commits into
masterfrom
mintlify/d1b954ce-multistage
Open

docs: recipe for matching multi-stage measures in pre-aggregations#10900
mintlify[bot] wants to merge 5 commits into
masterfrom
mintlify/d1b954ce-multistage

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 18, 2026

Adds a new recipe explaining how to design rollup pre-aggregations so multi-stage measures (powered by Tesseract) get accelerated instead of falling back to the data source.

Covers:

  • The three matching rules (include base measures, include all driving dimensions, keep bases additive)
  • Patterns for time_shift, rolling_window (period-to-date), group_by (percent of total), add_group_by (nested aggregates), and reduce_by (ranking)
  • Common pitfalls (e.g. build range must cover the shifted side; don't list the multi-stage measure itself in measures)

Also adds the recipe to:

  • docs.json navigation under Recipes → Pre-aggregations
  • The Pre-Aggregations card group in recipes/index.mdx

Requested in Slack by Julio Avila.

@mintlify mintlify Bot requested a review from keydunov as a code owner May 18, 2026 18:46
@github-actions github-actions Bot added the pr:community Contribution from Cube.js community members. label May 18, 2026
@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 18, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
cubed3 🟢 Ready View Preview May 18, 2026, 7:12 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants