From ec098abea86fa93946a5282a155af29ae16d56f0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 20 Nov 2020 15:24:29 +0100 Subject: uncomment Indexes --- newspipe/models/article.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/newspipe/models/article.py b/newspipe/models/article.py index 50afd067..611f5cb1 100644 --- a/newspipe/models/article.py +++ b/newspipe/models/article.py @@ -63,12 +63,12 @@ class Article(db.Model, RightMixin): tags = association_proxy("tag_objs", "text") # indexes - # __table_args__ = ( - # Index('user_id'), - # Index('user_id', 'category_id'), - # Index('user_id', 'feed_id'), - # Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id) - # ) + __table_args__ = ( + Index('user_id'), + Index('user_id', 'category_id'), + Index('user_id', 'feed_id'), + Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id) + ) # api whitelists @staticmethod -- cgit