-
Notifications
You must be signed in to change notification settings - Fork 71.9k
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
Change deduping interval #7285
Change deduping interval #7285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm willing to try this.
For context on medtronic systems, Here's some further discussion:
It would be nice to gain some observability on the impact of these changes. |
this constant is affecting only websocket comm. I believe currenly only AAPS is using this channel for data upload |
FWIW I still think the websocket persistence code should be either fully removed or fully rewritten so the REST API and the websocket use the same semantics. We still have the live issue where AAPS users can have duplicate record issues due to NSClient using different data deduplication logic from the REST API. OTOH the 1 minute interval is also clearly wrong logic, so this won't hurt? |
I agree. Next change will be to API v3. I rewrote NSClient to allow easy transition |
Sorry for the naive question (I don't know much about your code): |
Current behaviour of 1 min interval for deduplication is effectively blocking synchronization of 2 consequent events of the same type (like profile switch). I believe 2 sec should be enough for handling data with accuracy of seconds only