Fix N+1 problem on statuses/public_statuses indices
This commit is contained in:
parent
0ffd8acacd
commit
6aaef5c34e
2 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,7 @@ class PublicStatusesIndex < Chewy::Index
|
|||
index_scope ::Status.unscoped
|
||||
.kept
|
||||
.indexable
|
||||
.includes(:media_attachments, :preloadable_poll, :preview_cards, :tags)
|
||||
.includes(:media_attachments, :preloadable_poll, :preview_cards, :tags, :account)
|
||||
|
||||
root date_detection: false do
|
||||
field(:id, type: 'long')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue