From 0e4f4a889ebf61a0ac4e296fd997900a3a0c40dd Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 14 Feb 2013 08:05:33 +0100 Subject: MongoDB index on 'article_date' for each new collection. --- source/mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/mongodb.py b/source/mongodb.py index 22d82b86..7d593e46 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -45,7 +45,7 @@ class Articles(object): Creates a new collection for a new feed. """ collection = self.db[new_collection["feed_id"]] - #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False}) + collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False}) collection.ensure_index('article_content', pymongo.ASCENDING) collection.insert(new_collection) -- cgit