Skip to content

Conversation

@atovpeko
Copy link
Contributor

@atovpeko atovpeko commented Nov 7, 2025

No description provided.

@atovpeko atovpeko linked an issue Nov 7, 2025 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: http://docs-dev.timescale.com/docs-4552-feedback

Comment on lines 263 to 273
When data older than the invalidation threshold is changed, each mutation
operation logs the minimum and maximum timestamps of the rows it modified.
The continuous aggregate then identifies which complete time buckets contain
these modified rows. Only those specific buckets are recalculated during refresh.

For example, if one operation modifies rows in the 10:00 bucket and another
modifies rows in the 15:00 bucket, only those two buckets are recalculated. The
buckets in between (11:00, 12:00, 13:00, 14:00) are not affected.

This logging does cause some write load. However, the threshold lags behind the
area of data that is currently changing, so the writes are small and rare.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm its more complicated than that, it depends how you define operation, the min/max tracking is per transaction so if you modify 10:00 and 15:00 in 1 transaction then all buckets in between would also be recalculated. If you modify 10:00 in a transaction and 15:00 in a separate transaction then intermediate values would not be recalculated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thank you.

@atovpeko atovpeko merged commit 3b2e97e into latest Nov 14, 2025
3 checks passed
@atovpeko atovpeko deleted the 4552-feedback branch November 14, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feedback]

4 participants