I bought new ssd, because my four sd cards was dead, and I see now, that HA write every second to ssd. I wish, I can write to memory, and only after time/ buffer size it store data on disk, but not every second. And everybody can change such interval. It is not so important data to backup on disk every second. I need cache.
You can change the write time in the Recorder section of your configuration.yaml; default is 1 sec.
recorder:
purge_keep_days: 1
db_integrity_check: true
auto_purge: true
commit_interval: 1 #This is the write interval
exclude:
domains:
- automation
- updater
- calendar
- camera
- media player
entities:
- sun.sun
- sensor.date
- sensor.moon
event_types:
- call_service
It is nice, but it will be better, if such interval will not be visible in UI in state history