diff options
author | cedricbonhomme <devnull@localhost> | 2012-10-22 00:12:32 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-10-22 00:12:32 +0200 |
commit | 5bf0f1f1dac1a943b4f621def1190bb9385df495 (patch) | |
tree | 70dffb0e11cbb87eb37e64c4e4b970c0899a5d8c | |
parent | Updated documentation. (diff) | |
download | newspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.tar.gz newspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.tar.bz2 newspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.zip |
No longer create index on MongoDB articles collection.
-rw-r--r-- | source/mongodb.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index 8d07bf38..64bd9218 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -54,13 +54,7 @@ class Articles(object): Add article(s) in a collection. """ collection = self.db[str(feed_id)] - - try: - collection.create_index([("article_date", pymongo.DESCENDING)], \ - {"unique":False, "sparse":False}) - except: - print "Oups" - + #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False}) for article in articles: cursor = collection.find({"article_id":article["article_id"]}) if cursor.count() == 0: |