Replies: 2 comments
-
tumble window aggregation will accumulate all of the aggregation states in-memory in this case until the window is "closed", then all is the states will be removed from memory and prepare for next window aggregation. Internally, proton will track timestamp progressing to decide when a window is closed. |
Beta Was this translation helpful? Give feedback.
-
Global aggregation on the other hand is different which means it will track all aggregation states with no retention. If using pure in-memory aggregations and if the cardinality is growing indefinitely, the memory will blow up; if the aggregation key is a fixed set, it will be fine on the other hand. In next proton 3.0 release which we are actively working on, it will support hybrid aggregation which spill states to disk, and can support very large amount of unique key aggregation without blowing memory. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If we have a query like this one
Where we consume events from external stream
events
(redpanda) and we store results in a clickhouse table, what happens with memory usage for the CTE streams1
? Is it deleting events older than 1 hour? In my local test, memory keeps increasing up to the point where it gets evicted all at once usually in between 6 and 12 hours after continuously running.The behavior is different if the CTE query is not using windowing (tumble, hop)?
Beta Was this translation helpful? Give feedback.
All reactions