*For TS 3*

Use *`ThinkingSphinx::Deltas.suspend!`* to stop delta indexing for a minute 
and then get it back with *`ThinkingSphinx::Deltas.resume!`* when you need 
it back. 

If you require to scope that behavior use *`ThinkingSphinx::Deltas.suspend`*in 
this way: 

*    ThinkingSphinx::Deltas.suspend :user do *
*      # DO some operations on user*
*    end*
*
*
Fore more details check this out: 
https://github.com/pat/thinking-sphinx/blob/master/lib/thinking_sphinx/deltas.rb#L23



On Wednesday, 17 February 2010 02:42:00 UTC+5, Evan Dorn wrote:
>
> Is there any way to temporarily disable delta indexing entirely,
> without editing the model?  In this case, I'd like to disable it
> during certain rake tasks.
>
> A site I'm working on has a challenge that it must start off with a
> huge (8 hour) database import from a legacy database.   As we're
> testing, doing beta deployments, etc, we have had to run this script a
> number of times.
>
> This script goes *much* more slowly if delta indexing is turned on.
> I've been editing it out of the model, running the import script, and
> re-editing the model to turn delta back on for the site.
>
> What I'd like to do, instead, is have something at the top of my rake
> task that prevents any delta indexing from running until after the
> import, and then just run a manual index afterwards.   Is there any
> easy way to do this?
>
> Thanks!
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to