Skip to content

Commit 6e7f7b2

Browse files
committed
remove unused: redisPrefix from PreAggregationLoadCache class
1 parent 6781676 commit 6e7f7b2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ type VersionEntriesObj = {
255255
};
256256

257257
class PreAggregationLoadCache {
258-
private redisPrefix: string;
259-
260258
private driverFactory: DriverFactory;
261259

262260
private queryCache: QueryCache;
@@ -286,13 +284,11 @@ class PreAggregationLoadCache {
286284
private tablePrefixes: string[] | null;
287285

288286
public constructor(
289-
redisPrefix,
290287
clientFactory: DriverFactory,
291288
queryCache,
292289
preAggregations,
293290
options: PreAggregationLoadCacheOptions = { dataSource: 'default' }
294291
) {
295-
this.redisPrefix = `${redisPrefix}_${options.dataSource}`;
296292
this.dataSource = options.dataSource;
297293
this.driverFactory = clientFactory;
298294
this.queryCache = queryCache;
@@ -2116,7 +2112,6 @@ export class PreAggregations {
21162112
): Promise<[boolean, string]> {
21172113
// fetching tables
21182114
const loadCache = new PreAggregationLoadCache(
2119-
this.redisPrefix,
21202115
() => this.driverFactory(dataSource),
21212116
this.queryCache,
21222117
this,
@@ -2189,7 +2184,6 @@ export class PreAggregations {
21892184
if (!loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`]) {
21902185
loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`] =
21912186
new PreAggregationLoadCache(
2192-
this.redisPrefix,
21932187
() => this.driverFactory(dataSource),
21942188
this.queryCache,
21952189
this,
@@ -2307,7 +2301,6 @@ export class PreAggregations {
23072301
if (!loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`]) {
23082302
loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`] =
23092303
new PreAggregationLoadCache(
2310-
this.redisPrefix,
23112304
() => this.driverFactory(dataSource),
23122305
this.queryCache,
23132306
this,
@@ -2375,7 +2368,6 @@ export class PreAggregations {
23752368
preAggregation,
23762369
preAggregationsTablesToTempTables,
23772370
new PreAggregationLoadCache(
2378-
this.redisPrefix,
23792371
() => this.driverFactory(dataSource),
23802372
this.queryCache,
23812373
this,
@@ -2423,7 +2415,6 @@ export class PreAggregations {
24232415
requestId
24242416
} = q;
24252417
const loadCache = new PreAggregationLoadCache(
2426-
this.redisPrefix,
24272418
() => this.driverFactory(dataSource),
24282419
this.queryCache,
24292420
this,
@@ -2485,7 +2476,6 @@ export class PreAggregations {
24852476
if (!loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`]) {
24862477
loadCacheByDataSource[`${dataSource}_${preAggregationSchema}`] =
24872478
new PreAggregationLoadCache(
2488-
this.redisPrefix,
24892479
() => this.driverFactory(dataSource),
24902480
this.queryCache,
24912481
this,

0 commit comments

Comments
 (0)