diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 13:03:59 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 13:03:59 +0100 |
commit | 2e836469d8990fb079a77bb5e42ad252ac5e80e5 (patch) | |
tree | bd56ff3e502a0158cac0dada7ba6aafad327c1e1 | |
parent | In and Post order depth traversal. (diff) | |
download | newspipe-2e836469d8990fb079a77bb5e42ad252ac5e80e5.tar.gz newspipe-2e836469d8990fb079a77bb5e42ad252ac5e80e5.tar.bz2 newspipe-2e836469d8990fb079a77bb5e42ad252ac5e80e5.zip |
MongoDB index.
-rw-r--r-- | source/mongodb.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |