temporarily disable ts for an action?

1 view
Skip to first unread message

Vince Wadhwani

unread,
Jul 6, 2009, 10:43:57 AM7/6/09
to Thinking Sphinx
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

James Healy

unread,
Jul 6, 2009, 11:15:50 AM7/6/09
to thinkin...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages