Change search indexing to use batches to minimize resource usage (#18451)
This commit is contained in:
parent
ded5a0254a
commit
679b7158e3
10 changed files with 64 additions and 19 deletions
|
@ -13,15 +13,14 @@ Chewy.settings = {
|
|||
journal: false,
|
||||
user: user,
|
||||
password: password,
|
||||
sidekiq: { queue: 'pull' },
|
||||
}
|
||||
|
||||
# We use our own async strategy even outside the request-response
|
||||
# cycle, which takes care of checking if Elasticsearch is enabled
|
||||
# or not. However, mind that for the Rails console, the :urgent
|
||||
# strategy is set automatically with no way to override it.
|
||||
Chewy.root_strategy = :custom_sidekiq
|
||||
Chewy.request_strategy = :custom_sidekiq
|
||||
Chewy.root_strategy = :mastodon
|
||||
Chewy.request_strategy = :mastodon
|
||||
Chewy.use_after_commit_callbacks = false
|
||||
|
||||
module Chewy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue