Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CAgg watermark cache #6823

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

jnidzwetzki
Copy link
Contributor

@jnidzwetzki jnidzwetzki commented Apr 11, 2024

Since #6325 we constify the watermark value of a CAgg during planning time. Therefore, the planner calls the watermark function only once. This PR removes the old code to cache the watermark value and speed up multiple calls of the watermark function.


Tsbench does not show any CAgg related regressions: https://grafana.ops.savannah-dev.timescale.com/d/NdmLnOk4z/compare-benchmark-runs?orgId=1&var-branch=main&var-run1=3424&var-run2=3425&var-threshold=0.02

Disable-check: force-changelog-file

Since timescale#6325 we constify the watermark value of a CAgg during planning
time. Therefore, the planner calls the watermark function only once.
This PR removes the old code to cache the watermark value and speed up
multiple calls of the watermark function.
@jnidzwetzki jnidzwetzki self-assigned this Apr 11, 2024
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.85%. Comparing base (59f50f2) to head (03e36da).
Report is 111 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6823      +/-   ##
==========================================
+ Coverage   80.06%   80.85%   +0.79%     
==========================================
  Files         190      194       +4     
  Lines       37181    36905     -276     
  Branches     9450     9664     +214     
==========================================
+ Hits        29770    29841      +71     
- Misses       2997     3193     +196     
+ Partials     4414     3871     -543     

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

@jnidzwetzki jnidzwetzki marked this pull request as ready for review April 12, 2024 07:13
@fabriziomello fabriziomello added continuous_aggregate tech-debt Needs refactoring and improvement tasks related to the source code and its architecture. labels Apr 15, 2024
@jnidzwetzki jnidzwetzki merged commit 67bd5a8 into timescale:main Apr 17, 2024
44 of 46 checks passed
@jnidzwetzki jnidzwetzki deleted the cagg_cache branch April 17, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous_aggregate tech-debt Needs refactoring and improvement tasks related to the source code and its architecture.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants