Skip to content

Data retention for analytics and aggregation functions #2453

Answered by ngjaying
EscanorUt asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like you have two questions.

  1. analytic function state retention, it will retain in the whole rule lifecycle. Mostly, you'll need one message retained for any time. For example, latest(temperature) will only return one temperature value during the rule execution and it is usually unawarable for memory.
  2. We didn't limit the window duration and leave it to the user to determine the limitation based on the data volume and resource. The window will affect RAM comsumptions a lot. If you have 2 minutes' window, the two minutes' data of the source will be cached for any given time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EscanorUt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants