You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
@hulimatata since RedisTimeSeries 1.4 we've added the ability to back-fill time series, with different duplicate policies.
The following are the possible policies:
BLOCK - an error will occur for any out of order sample
FIRST - ignore the new value
LAST - override with latest value
MIN - only override if the value is lower than the existing value
MAX - only override if the value is higher than the existing value
SUM - If a previous sample exists, add the new sample to it so that the updated value is equal to (previous + new). If no previous sample exists, set the updated value equal to the new value.
The default behavior is to block updates to the same timestamp.
This block of code should output the following exception:
[(1, 5.0)]
@hulimatata I believe we should add further notes about duplicate policy to the Readme ( this is recurrent question ). Will open a PR about it @gkorland
redis.exceptions.ResponseError: TSDB: Error at upsert, update is not supported in BLOCK mode
How to solve this problem
The text was updated successfully, but these errors were encountered: