core/homeassistant/components/recorder
J. Nick Koston b09b5729a3
Accommodate mysql servers with a low wait_timeout (#33638)
Some providers have set their wait_timeout to 60s
in order to pack as many users as they can on a machine.
The mysql default is 28800 seconds (8 hours)

Since mysql connection build and tear down is relativity
expensive, we want to avoid being disconnected.

We now accommodate this scenario with the following:

1. Raise the mysql session wait_timeout 28800 when we connect
2. The event session now does a 30 second keep alive to
   ensure the connection stays open
2020-04-08 12:56:22 -07:00
..
__init__.py Accommodate mysql servers with a low wait_timeout (#33638) 2020-04-08 12:56:22 -07:00
const.py
manifest.json Upgrade sqlalchemy to 1.3.16 (#33810) 2020-04-08 13:12:07 +02:00
migration.py
models.py Revert "Use orjson to parse json faster (#32153)" (#32185) 2020-02-25 21:07:16 +01:00
purge.py Removal of extraneous parenthesis (#33637) 2020-04-04 20:08:55 +02:00
services.yaml
util.py