MediaElement: Add indeces to watched & ignored & compositum of both

master
Felix Stupp 2 years ago
parent 5267f98cad
commit abf01da286
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -461,12 +461,15 @@ class MediaElement(db.Entity, Tagable):
bool,
column="watched",
default=False,
index=False, # does not need index because of composite index below
)
ignored: bool = orm.Required(
bool,
column="ignored",
default=False,
index=True,
)
orm.composite_index(watched, ignored)
progress: int = orm.Required(
int,
default=0,

Loading…
Cancel
Save