server/search: improve post list performance
This commit is contained in:
parent
422b99ac8d
commit
fa60b42f65
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ class PostSearchConfig(BaseSearchConfig):
|
|||
defer(db.Post.note_count),
|
||||
defer(db.Post.tag_count),
|
||||
subqueryload(db.Post.tags).subqueryload(db.Tag.names),
|
||||
subqueryload(db.Post.tags).defer(db.Tag.post_count),
|
||||
subqueryload(db.Post.tags).lazyload(db.Tag.implications),
|
||||
subqueryload(db.Post.tags).lazyload(db.Tag.suggestions),
|
||||
lazyload(db.Post.user),
|
||||
lazyload(db.Post.relations),
|
||||
lazyload(db.Post.notes),
|
||||
|
|
Loading…
Reference in a new issue