toptal / chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
MIT License
1.88k stars 366 forks source link

is there a way to set `Chewy.strategy(:lazy_sidekiq)` globally? to make all updates asynchronously #873

Open 0xMostafa opened 1 year ago

0xMostafa commented 1 year ago

is there a way to set Chewy.strategy(:lazy_sidekiq) globally for all updates?

so that all updates happens asynchronously

kcollignon commented 11 months ago

I was hoping for this too

philipkocanda commented 9 months ago

You could try setting the following, for instance in an initializer:

Chewy.root_strategy = :lazy_sidekiq
Chewy.console_strategy = :lazy_sidekiq
Chewy.request_strategy = :lazy_sidekiq