@@ -1161,6 +1161,22 @@ This allows reusing pre-aggregations across environments, saving both time and c
11611161
11621162</Info >
11631163
1164+ ## ` CUBEJS_PRE_AGGREGATIONS_DB_* `
1165+
1166+ Connection variables for a dedicated data source used to build and store the default
1167+ data source's pre-aggregations, instead of its own connection. They mirror the regular
1168+ ` CUBEJS_DB_* ` connection variables — for example ` CUBEJS_PRE_AGGREGATIONS_DB_TYPE ` ,
1169+ ` CUBEJS_PRE_AGGREGATIONS_DB_HOST ` , ` CUBEJS_PRE_AGGREGATIONS_DB_PORT ` ,
1170+ ` CUBEJS_PRE_AGGREGATIONS_DB_USER ` , ` CUBEJS_PRE_AGGREGATIONS_DB_PASS ` , and
1171+ ` CUBEJS_PRE_AGGREGATIONS_DB_SSL ` . For a [ named data source] [ ref-config-multiple-ds-decorating-env ] ,
1172+ use the decorated form ` CUBEJS_DS_<NAME>_PRE_AGGREGATIONS_DB_* ` .
1173+
1174+ | Possible Values | Default in Development | Default in Production |
1175+ | -------------------------------------------- | ---------------------- | --------------------- |
1176+ | Same as the corresponding ` CUBEJS_DB_* ` variable | N/A | N/A |
1177+
1178+ See [ pre-aggregation data source] [ ref-preagg-data-source ] for details and examples.
1179+
11641180## ` CUBEJS_PRE_AGGREGATIONS_ALLOW_NON_STRICT_DATE_RANGE_MATCH `
11651181
11661182If ` true ` , allows non-strict date range matching for pre-aggregations by default.
@@ -1298,7 +1314,7 @@ option](/reference/configuration/config#can_switch_sql_user).
12981314## ` CUBEJS_ALLOW_UNGROUPED_WITHOUT_PRIMARY_KEY `
12991315
13001316If ` true ` , disables the primary key inclusion check for
1301- [ ungrouped queries] ( /reference/queries#ungrouped-query ) .
1317+ [ ungrouped queries] ( /reference/core-data-apis/ queries#ungrouped-query ) .
13021318
13031319| Possible Values | Default in Development | Default in Production |
13041320| --------------- | ---------------------- | --------------------- |
@@ -1337,7 +1353,7 @@ Queries without an explicit `LIMIT` still use [`CUBEJS_DB_QUERY_DEFAULT_LIMIT`](
13371353## ` CUBESQL_SQL_NO_IMPLICIT_ORDER `
13381354
13391355If ` true ` , prevents adding implicit [ default ` ORDER BY `
1340- clause] ( /reference/queries#order ) for [ SQL API] [ ref-sql-api ] queries.
1356+ clause] ( /reference/core-data-apis/ queries#order ) for [ SQL API] [ ref-sql-api ] queries.
13411357
13421358| Possible Values | Default in Development | Default in Production |
13431359| --------------- | ---------------------- | --------------------- |
@@ -1882,6 +1898,7 @@ The port for a Cube deployment to listen to API connections on.
18821898[ ref-config-db ] : /admin/connect-to-data/data-sources
18831899[ ref-config-multiple-ds-cloud ] : /admin/connect-to-data/multiple-data-sources
18841900[ ref-config-multiple-ds-decorating-env ] : /admin/connect-to-data/multiple-data-sources#under-the-hood
1901+ [ ref-preagg-data-source ] : /docs/pre-aggregations/refreshing-pre-aggregations#pre-aggregation-data-source
18851902[ ref-config-sched-refresh-timer ] : /reference/configuration/config#scheduled_refresh_timer
18861903[ ref-rest-scopes ] : /reference/rest-api#configuration-api-scopes
18871904[ snowflake-docs-account-id] :
@@ -1897,7 +1914,7 @@ The port for a Cube deployment to listen to API connections on.
18971914[ wiki-tz-database ] : https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
18981915[ ref-sql-api ] : /reference/sql-api
18991916[ ref-sql-api-streaming ] : /reference/sql-api#streaming
1900- [ ref-row-limit ] : /reference/queries#row-limit
1917+ [ ref-row-limit ] : /reference/core-data-apis/ queries#row-limit
19011918[ mysql-server-tz-support ] : https://dev.mysql.com/doc/refman/8.4/en/time-zone-support.html
19021919[ ref-schema-ref-preagg-allownonstrict ] : /reference/data-modeling/pre-aggregations#allow_non_strict_date_range_match
19031920[ link-tesseract ] : https://cube.dev/blog/introducing-next-generation-data-modeling-engine
@@ -1910,5 +1927,5 @@ The port for a Cube deployment to listen to API connections on.
19101927[ ref-mdx-api ] : /reference/mdx-api
19111928[ ref-mdx-api-locale ] : /reference/mdx-api#measure-format
19121929[ ref-time-dimensions ] : /reference/data-modeling/dimensions#type
1913- [ ref-time-zone ] : /reference/queries#time-zone
1930+ [ ref-time-zone ] : /reference/core-data-apis/ queries#time-zone
19141931[ link-tzdb ] : https://en.wikipedia.org/wiki/Tz_database
0 commit comments