Improve N+1 problem on timeline statuses (except for emoji_reaction N+1)
This commit is contained in:
parent
dc6af577a2
commit
87a148a6ad
1 changed files with 4 additions and 0 deletions
|
@ -173,6 +173,8 @@ class Status < ApplicationRecord
|
|||
:tags,
|
||||
:preview_cards,
|
||||
:preloadable_poll,
|
||||
:reference_objects,
|
||||
:scheduled_expiration_status,
|
||||
account: [:account_stat, user: :role],
|
||||
active_mentions: { account: :account_stat },
|
||||
reblog: [
|
||||
|
@ -183,6 +185,8 @@ class Status < ApplicationRecord
|
|||
:conversation,
|
||||
:status_stat,
|
||||
:preloadable_poll,
|
||||
:reference_objects,
|
||||
:scheduled_expiration_status,
|
||||
account: [:account_stat, user: :role],
|
||||
active_mentions: { account: :account_stat },
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue