Vince Wadhwani wrote:
> I've got an action that's doing a bunch of matching and creating a
> bunch of associations. I've got Thinking Sphinx setup to use delta
> indexing which is generally what I want.. except for this action. Is
> there a way to 'turn off indexing' temporarily? Maybe something like:
>
> def foo
> disable_sphinx
> add_lots_of_items!
> enable_sphinx
> end
Try:
def foo
SomeModel.suspended_delta do
add_lots_of_items!
end
end
-- James Healy <jimmy-at-deefa-dot-com> Tue, 07 Jul 2009 01:13:46 +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
-~----------~----~----~----~------~----~------~--~---