Speeding up user search feed removal.

This commit is contained in:
Samuel Clay 2015-07-30 13:10:42 -07:00
parent fd597db17b
commit b8547a6e40

View file

@ -169,6 +169,8 @@ class MUserSearch(mongo.Document):
feed = sub.feed
except Feed.DoesNotExist:
continue
if not feed.search_indexed:
continue
feed.search_indexed = False
feed.save()
removed += 1