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
[rrd4j] Correctly identify Number items with dimensions and persist them in the defined unit #8866
Conversation
…he defined unit Signed-off-by: Kai Kreuzer <kai@openhab.org>
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
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.
Thanks a lot! 👍
Signed-off-by: Wouter Born <github@maindrain.net>
FYI, either this or a related rrd4j PR had a significant impact on performance with retrieving data from Also some things in the UI, like the analyzer, don't work anymore because the unit comes with the number. |
No idea what could cause this - I don't see any performance degradation on my system so far.
I just noticed the same after upgrading and @lolodomo reported openhab/openhab-core#1781. |
(Copied from openhab/openhab-core#1781 (comment)) I have now downgraded to the M1 version of the rrd4j bundle and I'm back to acceptable perf levels again: I would suspect there's something way heavier than before being done for each data point. |
…hem in the defined unit (openhab#8866)
…hem in the defined unit (openhab#8866) Signed-off-by: Kai Kreuzer <kai@openhab.org>
…hem in the defined unit (openhab#8866) Signed-off-by: Kai Kreuzer <kai@openhab.org>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/persistence-sitemap-charts-blank/153654/1 |
The persistence service will now use the defined unit of Number items with dimensions (which is derived from the unit given in its state description or - if not set - from the defaults of the used measurement system) for both writing and reading values from the database.
Fixes #8809
Fixes #8856
Signed-off-by: Kai Kreuzer kai@openhab.org