|
Loading...
|
thinking-sphinx@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [ts] Using suspended_delta but many index jobs are running anyway Pat Allan Fri Feb 03 22:05:11 2012
Hi Ben This certainly isn't the expected behaviour. What versions of Rails, Sphinx and Thinking Sphinx are you using? And are you using the standard delta approach? Or delayed/datetime/etc? Cheers -- Pat On 02/02/2012, at 2:02 PM, Ben Greenberg wrote: > I have an indexed model that has an associated record with fields that > are indexed. One associated record can be associated with many of the > indexed model records. So when the associated record is updated, I > need to go through and set the delta flag on each of my model's > records. I thought that I could use Model.suspended_delta to do the > delta index in one operation at the end, but what happens is that at > the end of the process, a separate index process happens for every > flagged record, saving no time at all. So if I set delta=true on 100 > records, the indexer runs 100 times. Is this how it is supposed to > work? > > Example: > > associated_record.name = "new name" > > MyModel.suspended_delta do > associated_record.my_records.each do |record| > record.delta = true > record.save > # no index occurs here, good. > end > end > # A separate index process runs for every record with delta == true. I > want one index process to run if possible. > > > Thanks, > Ben > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To post to this group, send email to [EMAIL PROTECTED] > To unsubscribe from this group, send email to [EMAIL PROTECTED] > For more options, visit this group at > http://groups.google.com/group/thinking-sphinx?hl=en. > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
- [ts] Using suspended_delta but many index jobs are running anyway Ben Greenberg 2012/02/03
- Re: [ts] Using suspended_delta but many index jobs are running anyway Pat Allan 2012/02/03 <=
- [ts] Re: Using suspended_delta but many index jobs are running anyway Ben Greenberg 2012/02/07
- Re: [ts] Using suspended_delta but many index jobs are running anyway Pat Allan 2012/02/17