If you can reproduce it locally, then I'd recommend jumping in the source and trying to figure out why it's ignoring the deltas_enabled setting being false. I know that's not particularly elegant, but perhaps the most direct.
-- Pat On 08/02/2012, at 3:29 AM, Ben Greenberg wrote: > Hi Pat, > > I'm stuck on Rails 2.3.4 with TS 1.4.11 and Sphinx 0.9.9 r2117. I am > using the standard Delta approach. > > Any ideas on how to debug? > > Thanks > Ben > > On Feb 3, 10:19 pm, "Pat Allan" <[email protected]> wrote: >> 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 >>> athttp://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. > -- 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.
