core/tests/components/recorder
J. Nick Koston 3a680bf7b7
Add a commit interval setting to recorder (#32596)
* Add a commit interval setting to recorder

* Make the default every 1s instead of immediate

* See attached py-spy flamegraphs for why 1s

* This avoids disk thrashing during event storms

* Make Home Assistant significantly more responsive on busy systems

* remove debug

* Add commit forces for tests that expect commits to be immediate

* Add commit forces for tests that expect commits to be immediate

* make sure _trigger_db_commit is in the right place (all effective "wait_recording_done" calls)

* De-duplicate wait_recording_done code
2020-03-09 17:43:26 -07:00
..
__init__.py Tweak Recorder 2016-07-11 08:56:07 -07:00
common.py Add a commit interval setting to recorder (#32596) 2020-03-09 17:43:26 -07:00
models_original.py Sort imports according to PEP8 for recorder (#29652) 2019-12-08 18:48:18 +01:00
test_init.py Add a commit interval setting to recorder (#32596) 2020-03-09 17:43:26 -07:00
test_migrate.py Sort imports according to PEP8 for recorder (#29652) 2019-12-08 18:48:18 +01:00
test_models.py Sort imports according to PEP8 for recorder (#29652) 2019-12-08 18:48:18 +01:00
test_purge.py Sort imports according to PEP8 for recorder (#29652) 2019-12-08 18:48:18 +01:00
test_util.py Be consistent with Home Assistant and Hass.io spelling (#30500) 2020-01-05 14:09:17 +02:00