Optimize GetUserStickies (#13541)
This commit is contained in:
parent
a79b211d4f
commit
b167fb7fb1
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ module Articles
|
|||
author
|
||||
.articles
|
||||
.published
|
||||
.tagged_with(article_tags, any: true).unscope(:select)
|
||||
.cached_tagged_with_any(article_tags)
|
||||
.unscope(:select)
|
||||
.limited_column_select
|
||||
.where.not(id: article.id)
|
||||
.order(published_at: :desc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue