Skip to content

Commit ecf3826

Browse files
authored
fix(query-orchestrator): QueryQueue - reduce trafic (unexpected call for query stage) (#7646)
1 parent 85d3960 commit ecf3826

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,7 @@ export class PreAggregationLoader {
661661
};
662662
}
663663

664-
// TODO this check can be redundant due to structure version is already checked in loadPreAggregation()
665-
if (
666-
!this.waitForRenew &&
667-
// eslint-disable-next-line no-use-before-define
668-
await this.loadCache.getQueryStage(PreAggregations.preAggregationQueryCacheKey(this.preAggregation))
669-
) {
664+
if (!this.waitForRenew) {
670665
const versionEntryByStructureVersion = versionEntries.byStructure[`${this.preAggregation.tableName}_${structureVersion}`];
671666
if (versionEntryByStructureVersion) {
672667
const targetTableName = this.targetTableName(versionEntryByStructureVersion);

0 commit comments

Comments
 (0)