hass-core/tests/components/recorder
J. Nick Koston 9df00bd285
Adjust recorder LRU cache to align with the number of entities (#88350)
* Adjust size of recorder LRU based on number of entities

If there are a large number of entities the cache would
get thrashed as there were more state attributes being
recorded than the size of the cache. This meant we had
to go back to the database to do lookups frequently when
an instance has more than 2048 entities that change
frequently

* add a test

* do not actually record 4096 states

* patch target

* patch target
2023-02-19 00:02:36 -05:00
..
__init__.py Use python defaults for comparing State, LazyState, and Event objects (#86856) 2023-01-29 13:31:43 -05:00
common.py Use python defaults for comparing State, LazyState, and Event objects (#86856) 2023-01-29 13:31:43 -05:00
db_schema_0.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
db_schema_16.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
db_schema_18.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
db_schema_22.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
db_schema_23.py Separate recorder database schema from other classes (#72977) 2022-06-07 14:41:43 +02:00
db_schema_23_with_newer_columns.py Improve performance of fetching and storing history and events with the database (#84870) 2023-01-02 13:26:08 -10:00
db_schema_25.py Upgrade SQLAlchemy to 2.0.2 (#86436) 2023-02-08 08:17:32 -06:00
db_schema_28.py Upgrade SQLAlchemy to 2.0.2 (#86436) 2023-02-08 08:17:32 -06:00
db_schema_30.py Make recorder platform attribute exclude integration aware (#88357) 2023-02-18 10:08:59 +01:00
test_backup.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_filters.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_filters_with_entityfilter.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_history.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_history_db_schema_30.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_init.py Adjust recorder LRU cache to align with the number of entities (#88350) 2023-02-19 00:02:36 -05:00
test_migrate.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_models.py Use entity_sources to determine integration in recorder platforms (#88382) 2023-02-18 07:21:41 -06:00
test_pool.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_purge.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_run_history.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_statistics.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_statistics_v23_migration.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_system_health.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_util.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_v32_migration.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_websocket_api.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00