-
Notifications
You must be signed in to change notification settings - Fork 91
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
Database plugin: Provide pack mechanism to keep database small #216
Comments
Brainstorming upon the motivation and reasons to reduce dataWhy are we collecting the data?
What is the intention of a pack mechanism?
Ideas to pack data
Please extend further! |
I think it would be very important to configure the pack mechanism in the plugin.yaml file. At least to disable it. Other idea would be to delete all data older than x days. Or a smarter method like the older the data the more of it gets deleted. |
With SmartHomeNG it is possible to restrict the age of history data kept for an item. Older history entries are removed periodically. For Items that should use this removal, an the item attribute database_maxage must specify the number of days for which history should be kept. |
This issue has been moved to the plugin repo: smarthomeNG/plugins#566 |
The sqlite plugin have a pack mechanism which keeps the database small (like RRD files does). The database plugin does not have this mechanism and keeps all the values in the database.
To be able to have small databases (e.g. for embedded systems and maybe completely replace sqlite plugin) the database plugin should also have such a mechanism.
Different ideas exist
log_YYYY
table)Can be configured:
(leftover from #165)
The text was updated successfully, but these errors were encountered: