From 07cb37c2b90cfaac59e3a6381fc80d2a4a8dac6f Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 9 Nov 2016 11:35:48 -0800 Subject: [PATCH] Continuing to add index hints to shared stories. --- apps/reader/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/reader/views.py b/apps/reader/views.py index 289f2ad45..b0ac64d98 100644 --- a/apps/reader/views.py +++ b/apps/reader/views.py @@ -874,6 +874,7 @@ def load_starred_stories(request): if shared_story_hashes: shared_stories = MSharedStory.objects(user_id=user.pk, story_hash__in=shared_story_hashes)\ + .hint([('story_hash', 1)])\ .only('story_hash', 'shared_date', 'comments') shared_stories = dict([(story.story_hash, dict(shared_date=story.shared_date, comments=story.comments)) @@ -1155,6 +1156,7 @@ def load_read_stories(request): shared_stories = MSharedStory.objects(user_id=user.pk, story_hash__in=story_hashes)\ + .hint([('story_hash', 1)])\ .only('story_hash', 'shared_date', 'comments') shared_stories = dict([(story.story_hash, dict(shared_date=story.shared_date, comments=story.comments))