Logbook speedup (#18376)
* filter logbook results by entity_id prior to instantiating them * include by default, pass pep8 * pass pylint * use entityfilter, update tests
This commit is contained in:
1 parent
f241becf7f
commit
089a2f4e71
4 files changed
+112
-69
No files matched your search
@@ -218,6 +218,8 @@ def _apply_update(engine, new_version, old_version):
|
||||
])
|
||||
_create_index(engine, "states", "ix_states_context_id")
|
||||
_create_index(engine, "states", "ix_states_context_user_id")
|
||||
elif new_version == 7:
|
||||
_create_index(engine, "states", "ix_states_entity_id")
|
||||
else:
|
||||
raise ValueError("No schema migration defined for version {}"
|
||||
.format(new_version))
|
||||
|
||||
Reference in new issue
Block a user