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

Backport to 2.13.x: #6405: Read watermark from materialized data #6457

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

timescale-automation
Copy link
Member

This is an automated backport of #6405: Read watermark from materialized data.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Read watermark from materialized data

In 38fcd1b we improved the cagg_watermark performance by storing it into a metadata table and update it during the refresh.

But we made a minor mistake here reading the watermark from the partial view instead of the already materialized data that should be much fast because we're reading already aggregated data.

Fixed this mistake by reading the watermark from the underlying materialization hypertable (already aggregated data).

Disable-check: force-changelog-file

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (2.13.x@9d39d00). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff            @@
##             2.13.x    #6457   +/-   ##
=========================================
  Coverage          ?   82.45%           
=========================================
  Files             ?      249           
  Lines             ?    57952           
  Branches          ?    12899           
=========================================
  Hits              ?    47785           
  Misses            ?     6746           
  Partials          ?     3421           

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

@fabriziomello fabriziomello added this to the TimescaleDB 2.13.1 milestone Dec 21, 2023
In 38fcd1b we improved the cagg_watermark performance by storing it
into a metadata table and update it during the refresh.

But we made a minor mistake here reading the watermark from the
partial view instead of the already materialized data that should be
much fast because we're reading already aggregated data.

Fixed this mistake by reading the watermark from the underlying
materialization hypertable (already aggregated data).

(cherry picked from commit 3d93bfb)
@timescale-automation timescale-automation merged commit e92a628 into 2.13.x Dec 26, 2023
39 of 40 checks passed
@timescale-automation timescale-automation deleted the backport/2.13.x/6405 branch December 26, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants