In this step, we’ll add a pre-aggregation to optimize the performance of a specific query. Pre-aggregations are a caching technique that massively reduces…
In this step, we’ll add a pre-aggregation to optimize the performance of a
specific query. Pre-aggregations are a caching technique that massively reduces
query time from seconds to milliseconds. They are extremely useful for speeding
up queries that are run frequently.From the Build tab, execute a query:
Just above the results, click on Query was not accelerated with
pre-aggregation to bring up the pre-aggregation suggestion:
A pre-aggregation will be automatically suggested for the query;
click Add to the Data Model and then retry the query in the
Playground. This time, the query should be accelerated with a pre-aggregation:
And with that, we conclude our Getting Started with Cube guide. If you’d like to
learn more about Cube, check out this page.