mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 14:11:05 +00:00
Continuing to add index hints to shared stories.
This commit is contained in:
parent
59aac74f42
commit
07cb37c2b9
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue