There's also ThinkingSphinx.deltas_enabled, which may fit what you  
need? It's not on a per-model update, though.
   ThinkingSphinx.deltas_enabled = false

-- 
Pat

On 12/06/2009, at 6:14 PM, gmoniey wrote:

>
> thanks for pointing that out...I may be pressing my luck, but is there
> a boolean flag that I can turn on/off? I am performing mass updates to
> a handful of models, (some of which are not indexed by sphinx, so not
> all of them will respond to suspended_delta).
>
> It would be ideal if I could do something like:
>
> dynamic_model.suspend_delta = true if dynamic_model.respond_to?
> ('suspend_delta')
>
> thanks
>
> On Jun 10, 6:29 pm, James Healy <[email protected]> wrote:
>> gmoniey wrote:
>>> Is it possibly to turn off delta indexing dynamically?
>>
>>> Sometime I have large import jobs that are using rails models, and  
>>> the
>>> indexer is slowing things down. I turned off the search (rake
>>> ts:stop), but it seems the delta indexer runs under a different
>>> process.
>>
>>   Model.suspended_delta do
>>     ...
>>     import job in here
>>     ...
>>   end
>>
>> -- James Healy <jimmy-at-deefa-dot-com>  Thu, 11 Jun 2009 11:27:33  
>> +1000
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to