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, bool,
column="watched", column="watched",
default=False, default=False,
index=False, # does not need index because of composite index below
) )
ignored: bool = orm.Required( ignored: bool = orm.Required(
bool, bool,
column="ignored", column="ignored",
default=False, default=False,
index=True,
) )
orm.composite_index(watched, ignored)
progress: int = orm.Required( progress: int = orm.Required(
int, int,
default=0, default=0,

Loading…
Cancel
Save