Skip to content

Commit 800134e

Browse files
authored
feat(firebolt): Change default renewal threshold to 2 minutes (#10219)
Firebolt is DWH and it provides a limited concurrency then local databases such as PostgreSQL. A long time ago, we've declared that DWH should use 2 minutes renewal threshold by default, let's do the same for Firebolt.
1 parent 2efb5ec commit 800134e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/pages/product/data-modeling/reference/cube.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ queries that rely on that cube.
414414

415415
The default values for `refresh_key` are
416416

417-
- `every: '2 minute'` for BigQuery, Athena, Snowflake, and Presto.
417+
- `every: '2 minute'` for BigQuery, Athena, Snowflake, Presto, and Firebolt.
418418
- `every: '10 second'` for all other databases.
419419

420420
Refresh key of a query is a concatenation of all cubes refresh keys involved in

packages/cubejs-firebolt-driver/src/FireboltQuery.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ export class FireboltQuery extends BaseQuery {
4848
public newFilter(filter: any): BaseFilter {
4949
return new FireboltFilter(this, filter);
5050
}
51+
52+
public defaultRefreshKeyRenewalThreshold() {
53+
return 120;
54+
}
55+
56+
public defaultEveryRefreshKey() {
57+
return {
58+
every: '2 minutes'
59+
};
60+
}
5161
}

0 commit comments

Comments
 (0)