Change algorithm of tootctl search deploy
to improve performance (#18463)
This commit is contained in:
parent
54bb659ad1
commit
a9b64b24d6
9 changed files with 294 additions and 103 deletions
|
@ -33,6 +33,8 @@ class StatusesIndex < Chewy::Index
|
|||
},
|
||||
}
|
||||
|
||||
# We do not use delete_if option here because it would call a method that we
|
||||
# expect to be called with crutches without crutches, causing n+1 queries
|
||||
index_scope ::Status.unscoped.kept.without_reblogs.includes(:media_attachments, :preloadable_poll)
|
||||
|
||||
crutch :mentions do |collection|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue