Skip to content

Conversation

@KSDaemon
Copy link
Member

@KSDaemon KSDaemon commented Nov 19, 2025

This simple fix cleans up references to data schema compilers instances within dispose() method during cache eviction. This slightly improves memory performance by allowing GC to clean up unused memory earlier.

While it won't be noticed in most cases, these changes might be useful for highload scenarios with huge data models.

Here are some insights. Pay attention to the Total Heap Allocated curve.

BEFORE:
Screenshot 2025-11-19 в 11 26 20

AFTER:
Screenshot 2025-11-19 в 11 26 26

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet

@github-actions github-actions bot added the javascript Pull requests that update Javascript code label Nov 19, 2025
@KSDaemon KSDaemon marked this pull request as ready for review November 19, 2025 09:33
@KSDaemon KSDaemon requested a review from a team as a code owner November 19, 2025 09:33
@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

❌ Patch coverage is 53.33333% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.73%. Comparing base (258be19) to head (caf275f).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...ackages/cubejs-backend-shared/src/disposedProxy.ts 12.50% 7 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (258be19) and HEAD (caf275f). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (258be19) HEAD (caf275f)
cubesql 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #10153       +/-   ##
===========================================
- Coverage   83.29%   54.73%   -28.56%     
===========================================
  Files         244      214       -30     
  Lines       74180    16961    -57219     
  Branches        0     3366     +3366     
===========================================
- Hits        61786     9284    -52502     
+ Misses      12394     7190     -5204     
- Partials        0      487      +487     
Flag Coverage Δ
cube-backend 54.73% <53.33%> (?)
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.

@KSDaemon KSDaemon requested a review from ovr November 21, 2025 14:16
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.

3 participants