Skip to content

Conversation

@Nauman1011
Copy link
Contributor

I've added documentation for indexes and rollup_join and updated everything according to Tom’s feedback.

There’s one intentional deviation: in the index example, the pre-aggregation includes the dimensions id and name. You had suggested keeping only size, but I decided to retain name because it seemed more meaningful for the example, and I kept id since it’s used in the join with orders in the rollup_join section below. That’s also why the index is created on id. So we can saw its pre-aggregated at id,name level.

I've added documentation for indexes and rollup_join and updated everything according to Tom’s feedback.

There’s one intentional deviation: in the index example, the pre-aggregation includes the dimensions id and name. You had suggested keeping only size, but I decided to retain name because it seemed more meaningful for the example, and I kept id since it’s used in the join with orders in the rollup_join section below. That’s also why the index is created on id. So we can saw its pre-aggregated at id,name level.
@Nauman1011 Nauman1011 requested a review from tagspace November 12, 2025 12:15
@Nauman1011 Nauman1011 requested a review from a team as a code owner November 12, 2025 12:15
@vercel
Copy link

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
handbook Ready Ready Preview Comment Nov 12, 2025 5:52pm

Copy link
Member

@tagspace tagspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Nauman1011 I can't approve this change, for the same reason I described last time: your index example is not a pre-aggregation. It is a complete copy of the data from the database into Cube store. There is no "aggregation" happening. Just copy.

This is, in my opinion, very bad practice, and we shouldn't encourage it through such examples in our documentation.

Let's discuss on a call, if helpful.

@Nauman1011
Copy link
Contributor Author

Sure lets connect whenever you are available to discuss this.

- Updated the indexes section by only using name as a dimension to simplify. Also removed refresh_key as that was unnecessary.
- The pre-aggregation i wanted in rollup_join specifically from products model i added that within that specific section so the end user doesn't get confused while only reviewing indexes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants