I’ve converted the SQLlite database to a MySQL (MariaDB) and it works fairly well. Definitely makes rendering the history faster.
I’ve noticed that each night around 2-3AM something happends to the SQL server and the recorder component fails. HASS keeps working but without any data being recorded. Below is the error message I get each morning. Has anyone else seen this happen?
2017-06-10 08:00:51 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone away') [SQL: 'INSERT INTO states (domain, entity_id, state, attributes, event_id, last_changed, last_updated, created) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: ('sensor', 'sensor.ram_free', '14214.2', '{"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}', None, datetime.datetime(2017, 6, 10, 8, 0, 50, 986400, tzinfo=<UTC>), datetime.datetime(2017, 6, 10, 8, 0, 50, 986400, tzinfo=<UTC>), datetime.datetime(2017, 6, 10, 8, 0, 51, 9819))]