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 Update Union typing (4) [Py310] (#86427) 2023-01-23 09:04:40 +01:00
manifest.json Sort manifests 3 (#87024) 2023-02-08 20:19:19 +01:00
sensor.py Add Mega Joule as valid unit of energy (#86055) 2023-01-25 14:13:42 +01:00
strings.json
types.py Set Protocol inheritance on EnergyPlatform (#89079) 2023-03-03 11:57:41 +01:00
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