Class: Chewy::Strategy::Urgent
- Defined in:
- lib/chewy/strategy/urgent.rb
Overview
This strategy updates index on demand. Not the best strategy in case of optimization. If you need to update indexes with bulk API calls - use :atomic instead.
Chewy.strategy(:urgent) do
User.all.map(&:save) # Updates index on every save
call
end