Closed KSDaemon closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
@KSDaemon I believe this has to be changed: https://cube.dev/docs/product/caching/using-pre-aggregations#using-indexes
Should this be considered a breaking change? Also, will upgrading to this version result in pre-aggregations being rebuilt, entirely or partially?
@igorlukanin Actually No
:) It's internal optimization, so indexes are still copies of all preagg data. The difference is that now, sorting keys for the index do not include measures (as it's mostly useless, no filtering is done by measures, potentially they may be useful for postagregation filtering (aka HAVING xxx
). But that is another story.
Rgd existing indexes — there should be no changes. This technique will be applied only for new index creation.
Docs still need to be updated wrt what is included in the default index, don't they?
When you define a pre-aggregation without any explicit indexes, the default index is created. In this index, dimensions come first, time dimensions come second, and measures come last.
This is still true :)
@KSDaemon Hopefully I did it correctly.
This change improves the cube store preaggregation creation: the default index for a preaggregation now excludes all measures from the sorting keys
Check List