Hi Pat,
In one part of my app I update a load of records with ActiveRecord's
`update_all`. What's the best way to then tell the delta index that all
those records just changed?
Old conversations in the mailing list archives suggested:
# The actual update is setting foo to bar.
# Also include `delta: true` in the update.
MyModel.where(...).update_all foo: 'bar', delta: true
# Poke the delta index.
ThinkingSphinx::Deltas::IndexJob.new('my_model_delta').perform
Is this still correct / the best way for TS 3.2.0?
Many thanks,
Andy Stewart
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.