core/homeassistant/components/energy
J. Nick Koston 5ffb233004
Avoid database executor job to fetch statistic metadata on cache hit (#89960)
* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* remove exception catch since the threading.excepthook will actually catch this in production

* fix a few missed ones

* threadsafe

* Update homeassistant/components/recorder/table_managers/statistics_meta.py

* coverage and optimistic caching
2023-03-19 22:01:16 -04:00
..
__init__.py
const.py
data.py
manifest.json
sensor.py
strings.json
types.py
validate.py Avoid database executor job to fetch statistic metadata on cache hit (#89960) 2023-03-19 22:01:16 -04:00
websocket_api.py Avoid database executor job to fetch statistic metadata on cache hit (#89960) 2023-03-19 22:01:16 -04:00