Skip to content

Fix too frequent database writes - #6487

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:relax_db_writes
Nov 8, 2022
Merged

manup merged 1 commit into
dresden-elektronik:masterfrom
manup:relax_db_writes

Conversation

@manup

@manup manup commented Oct 31, 2022

Copy link
Copy Markdown
Member

When a resource item is changed by DDF code is written to the database quickly. The PR throttles this so that state/* items are only written if they don't exist or the version in the database is older than 10 minutes.

In future we need to denote items via JSON to have a storage interval. There are many items which aren't that important and are ok to be stored in larger intervals or only when deCONZ is closed.

The PR also fixes that static modelid and manufacturername items are respected in the DDF init code.

When a resource item is changed by DDF code is written to the database quickly. The PR throttles this so that `state/*` items are only written if they don't exist or the version in the database is older than 10 minutes.

In future we need to denote items via JSON to have a storage interval.
There are many items which aren't that important and are ok to
be stored in larger intervals or only when deCONZ is closed.

The PR also fixes that static modelid and manufacturername items are
respected in the DDF init code.
@manup manup added this to the v2.19.2-beta milestone Oct 31, 2022
@manup manup added the Fix label Oct 31, 2022
@manup
manup marked this pull request as draft October 31, 2022 15:41
@manup
manup marked this pull request as ready for review November 8, 2022 20:51
@manup
manup merged commit 3a07007 into dresden-elektronik:master Nov 8, 2022
@manup
manup deleted the relax_db_writes branch January 3, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant