Forcing index on starred stories.

This commit is contained in:
Samuel Clay 2016-11-09 11:54:30 -08:00
parent eaab100815
commit 68dbab10bd

View file

@ -641,6 +641,7 @@ def load_single_feed(request, feed_id):
starred_stories = MStarredStory.objects(user_id=user.pk,
story_feed_id=feed.pk,
story_hash__in=story_hashes)\
.hint([('user_id', 1), ('story_feed_id', 1)])\
.only('story_hash', 'starred_date', 'user_tags')
shared_story_hashes = MSharedStory.check_shared_story_hashes(user.pk, story_hashes)
shared_stories = []