Hi Lonnie In many cases, it certainly would not be necessary.
But... sometimes index definitions rely on associations, and calling save on a model can be a way to prompt the index update of the indexed model. I can’t think of a way to detect whether associated models have changed or not, so I’m loath to change this behaviour. — Pat On 1 Nov 2013, at 2:50 am, Lonnie Warpup <[email protected]> wrote: > delayed_job (3.0.5) > thinking-sphinx (3.0.6) > ts-delayed-delta (2.0.0) > > ThinkingSphinx::Index.define :my_model, :with => :active_record, :delta => > ThinkingSphinx::Deltas::DelayedDelta do > ... > end > > I've noticed that calling #save on an ActiveRecord model that has no changes > (non-dirty) still triggers delta update jobs to be created. Is this > necessary, or am I just being too neurotic about extra reads/writes/processes? > > -- > 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 http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/groups/opt_out.
