diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-11-20 15:24:29 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-11-20 15:24:29 +0100 |
commit | ec098abea86fa93946a5282a155af29ae16d56f0 (patch) | |
tree | 45c5166aef8fee4344cd5257ff6f21b99d6aef26 /newspipe/models/article.py | |
parent | chg: [view] Articles are now ordered by date on the public users's stream page. (diff) | |
download | newspipe-ec098abea86fa93946a5282a155af29ae16d56f0.tar.gz newspipe-ec098abea86fa93946a5282a155af29ae16d56f0.tar.bz2 newspipe-ec098abea86fa93946a5282a155af29ae16d56f0.zip |
uncomment Indexes
Diffstat (limited to 'newspipe/models/article.py')
-rw-r--r-- | newspipe/models/article.py | 12 |
1 files 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 |