Skip to content

fix(schema-compiler): Allow no-cache queries to use pre-aggregations#10440

Merged
ovr merged 2 commits intomasterfrom
fix/no-cache-must-hit-pre-agg
Feb 26, 2026
Merged

fix(schema-compiler): Allow no-cache queries to use pre-aggregations#10440
ovr merged 2 commits intomasterfrom
fix/no-cache-must-hit-pre-agg

Conversation

@ovr
Copy link
Member

@ovr ovr commented Feb 26, 2026

no-cache mode now only skips the result cache (via forceNoCache in QueryCache) but still routes queries through pre-aggregation tables when available, avoiding expensive source database queries.

We initially discussed this exact behavior, but we skipped it. Skipping pre-aggregations doesn't make sense, since the cache parameter controls the in-memory cache.

no-cache mode now only skips the result cache (via forceNoCache in
QueryCache) but still routes queries through pre-aggregation tables
when available, avoiding expensive source database queries.

We initially discussed this exact behavior, but we skipped it. Skipping pre-aggregations doesn't make sense, since the cache parameter controls the in-memory cache.
@ovr ovr requested a review from a team as a code owner February 26, 2026 11:02
@github-actions github-actions bot added the javascript Pull requests that update Javascript code label Feb 26, 2026
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.53%. Comparing base (880d52e) to head (e526eaf).
⚠️ Report is 4 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (880d52e) and HEAD (e526eaf). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (880d52e) HEAD (e526eaf)
cubesql 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #10440       +/-   ##
===========================================
- Coverage   83.37%   57.53%   -25.85%     
===========================================
  Files         250      222       -28     
  Lines       74886    17370    -57516     
  Branches        0     3558     +3558     
===========================================
- Hits        62434     9993    -52441     
+ Misses      12452     6841     -5611     
- Partials        0      536      +536     
Flag Coverage Δ
cube-backend 57.53% <100.00%> (?)
cubesql ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ovr ovr force-pushed the fix/no-cache-must-hit-pre-agg branch from 169f924 to cbe6876 Compare February 26, 2026 11:41
@ovr ovr force-pushed the fix/no-cache-must-hit-pre-agg branch from cbe6876 to e526eaf Compare February 26, 2026 11:44
@ovr ovr merged commit 22286f5 into master Feb 26, 2026
71 of 73 checks passed
@ovr ovr deleted the fix/no-cache-must-hit-pre-agg branch February 26, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants