aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-10-22 00:12:32 +0200
committercedricbonhomme <devnull@localhost>2012-10-22 00:12:32 +0200
commit5bf0f1f1dac1a943b4f621def1190bb9385df495 (patch)
tree70dffb0e11cbb87eb37e64c4e4b970c0899a5d8c /source
parentUpdated documentation. (diff)
downloadnewspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.tar.gz
newspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.tar.bz2
newspipe-5bf0f1f1dac1a943b4f621def1190bb9385df495.zip
No longer create index on MongoDB articles collection.
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py8
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:
bgstack15