hass-core/homeassistant/components/recorder
J. Nick Koston adc472862b
Fallback to generating a new ULID on migraiton if context is missing or invalid (#91704)
* Fallback to generating a new ULID on migraiton if context is missing or invalid

It was discovered that postgresql will do a full scan if
there is a low cardinality on the index because of missing
context ids. We will now generate a ULID for the timestamp
of the row if the context data is missing or invalid

fixes #91514

* tests

* tweak

* tweak

* preen
2023-04-19 21:56:07 -04:00
..
auto_repairs Add auto repairs for events schema (#90136) 2023-03-22 21:17:36 -04:00
history Avoid multiple round trips to the database for history API calls (#91193) 2023-04-11 22:38:23 -04:00
models Use cache to lookup event type ids in logbook (#91576) 2023-04-17 23:40:03 -04:00
system_health Rename recorder run_history to table_managers.recorder_runs_manager (#90070) 2023-03-21 18:38:33 -10:00
table_managers Rename recorder run_history to table_managers.recorder_runs_manager (#90070) 2023-03-21 18:38:33 -10:00
__init__.py Restore use of local timezone for MariaDB/MySQL in SQL integration (#91313) 2023-04-12 20:24:55 -04:00
backup.py Use recorder get_instance function to improve typing (#75567) 2022-07-22 11:58:26 +02:00
const.py Dynamically size recorder max backlog based on available memory (#90894) 2023-04-18 12:35:49 +02:00
core.py Dynamically size recorder max backlog based on available memory (#90894) 2023-04-18 12:35:49 +02:00
db_schema.py Reduce overhead of legacy database columns on new installs (#90246) 2023-04-10 10:08:46 -04:00
entity_registry.py Retain history when renaming an entity_id (#89963) 2023-03-19 17:33:21 -10:00
executor.py Code styling tweaks to the recorder integration (#86030) 2023-01-16 19:51:11 +01:00
filters.py Rework recorder filters to avoid caching mistakes (#90419) 2023-03-28 22:51:46 +02:00
manifest.json Dynamically size recorder max backlog based on available memory (#90894) 2023-04-18 12:35:49 +02:00
migration.py Fallback to generating a new ULID on migraiton if context is missing or invalid (#91704) 2023-04-19 21:56:07 -04:00
pool.py Update typing on recorder pool for sqlalchemy 2.0 (#91244) 2023-04-13 00:09:15 +02:00
purge.py Rename recorder run_history to table_managers.recorder_runs_manager (#90070) 2023-03-21 18:38:33 -10:00
queries.py Fallback to generating a new ULID on migraiton if context is missing or invalid (#91704) 2023-04-19 21:56:07 -04:00
repack.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
services.py Add keep_days to recorder.purge_entities (#89726) 2023-03-15 11:13:47 -10:00
services.yaml Add keep_days to recorder.purge_entities (#89726) 2023-03-15 11:13:47 -10:00
statistics.py Improve performance of sums in the energy dashboard (#91342) 2023-04-13 11:52:38 -10:00
strings.json Add a repair issue when using MariaDB is affected by MDEV-25020 (#87040) 2023-01-31 20:42:07 +01:00
tasks.py Use slots for recorder tasks to reduce memory (#90387) 2023-03-28 12:24:12 +02:00
util.py Call sqlite pragma optimize during periodic cleanup task (#91245) 2023-04-11 22:39:19 -04:00
websocket_api.py Dynamically size recorder max backlog based on available memory (#90894) 2023-04-18 12:35:49 +02:00