dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Prevent heavy database writes during APS indications #7578

Closed manup closed 7 months ago

manup commented 7 months ago

On weak systems like the Raspberry Pi 1 this could block for ~1 second, which is quite bad considering each command. The PR marks changed ResourceItems to be stored later on if possible and restricts immediate stores more than before.

It's still far from perfect but before the remaining code base is cleaned up there isn't much that can be optimized further.