Skip to content

Commit 36cda9d

Browse files
committed
docs: Note on pre-aggregations schema name
1 parent 61f15ab commit 36cda9d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/pages/product/configuration/reference/config.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,13 @@ the schema name dynamically depending on the security context.
551551
Defaults to `dev_pre_aggregations` in [development mode][ref-development-mode]
552552
and `prod_pre_aggregations` in production.
553553

554+
<InfoBox>
555+
556+
In Cube Cloud, all [environments][ref-environments] share the same pre-aggregations schema name by default.
557+
This allows reusing pre-aggregations across environments, saving both time and cost.
558+
559+
</InfoBox>
560+
554561
This configuration option can also be set using the `CUBEJS_PRE_AGGREGATIONS_SCHEMA`
555562
environment variable.
556563

@@ -1543,3 +1550,4 @@ If not defined, Cube will lookup for environment variable
15431550
[ref-dax-api]: /product/apis-integrations/dax-api
15441551
[ref-mdx-api]: /product/apis-integrations/mdx-api
15451552
[ref-ntlm]: /product/auth/methods/ntlm
1553+
[ref-environments]: /product/workspace/environments

docs/pages/product/configuration/reference/environment-variables.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,13 @@ to use for storing pre-aggregations.
10771077
It can be also set using the [`pre_aggregations_schema` configuration
10781078
option](/product/configuration/reference/config#pre_aggregations_schema).
10791079

1080+
<InfoBox>
1081+
1082+
In Cube Cloud, all [environments][ref-environments] share the same pre-aggregations schema name by default.
1083+
This allows reusing pre-aggregations across environments, saving both time and cost.
1084+
1085+
</InfoBox>
1086+
10801087
## `CUBEJS_PRE_AGGREGATIONS_ALLOW_NON_STRICT_DATE_RANGE_MATCH`
10811088

10821089
If `true`, allows non-strict date range matching for pre-aggregations by default.
@@ -1799,4 +1806,5 @@ The port for a Cube deployment to listen to API connections on.
17991806
[ref-multi-stage-calculations]: /product/data-modeling/concepts/multi-stage-calculations
18001807
[ref-folders]: /product/data-modeling/reference/view#folders
18011808
[ref-dataviz-tools]: /product/configuration/visualization-tools
1802-
[ref-context-to-app-id]: /product/configuration/reference/config#context_to_app_id
1809+
[ref-context-to-app-id]: /product/configuration/reference/config#context_to_app_id
1810+
[ref-environments]: /product/workspace/environments

0 commit comments

Comments
 (0)