I am running a big migration and would like to disable delta indexing so it runs much faster.
Is there a way to specify in the beginning of the task to turn delta indexing off?
I am running a big migration and would like to disable delta indexing so it runs much faster.
Is there a way to specify in the beginning of the task to turn delta indexing off?
On
For thinking sphinx v3, you can suspend the deltas this way (the old way is deprecated):
ThinkingSphinx::Deltas.suspend(:index_reference) do
# Do something
end
So if I have a model called Job with an index named :job, it would look like this:
ThinkingSphinx::Deltas.suspend(:job) do
# Do Something
end
Two options:
Or, what may be better in your situation:
And set it back to
truewhen you're done.