From 88a4fb7d72fb4e7324dfbd6eb99fd78ce2b404c2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 15 Mar 2013 08:09:10 +0100 Subject: Creation of an index when creating a 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 9e64fe4f..38081780 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