MediaCollection: Add indices to keep_updated, pinned, watch_in_order

for faster DB requests
master
Felix Stupp 2 years ago
parent abf01da286
commit a9cae7ab1e
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -706,6 +706,7 @@ class MediaCollection(db.Entity, Tagable):
keep_updated: bool = orm.Required(
bool,
default=False,
index=True,
)
watch_in_order_auto: bool = orm.Required(
bool,
@ -715,6 +716,7 @@ class MediaCollection(db.Entity, Tagable):
pinned: bool = orm.Required(
bool,
default=False,
index=True,
)
ignored: bool = orm.Required(
bool,
@ -723,6 +725,7 @@ class MediaCollection(db.Entity, Tagable):
watch_in_order: bool = orm.Required(
bool,
default=True,
index=True,
)
tag_list: Iterable[Tag] = orm.Set(

Loading…
Cancel
Save