Well, it's been a long time coming, but there's finally support for delayed deltas, using delayed_job (fittingly). It is an internal copy of dj, and I've not tested it with apps that also use the dj plugin, but it should play nicely. Please do test, though.
How to make it work?
In your define_index block: set_property :delta => :delayed
To get the background task running: rake thinking_sphinx:delta or rake ts:delta
I'm not convinced about the task name, so you're warned it may change (especially when deltas-by-timestamps is added - soon!).
I've tested it on various Rails versions (including 1.2.6), and as far as I can tell, it works as it should. I've added cucumber features to test it too, so I'm pretty happy with how it runs. That said, would appreciate hearing how it works for everyone else :)
> Well, it's been a long time coming, but there's finally support for
> delayed deltas, using delayed_job (fittingly). It is an internal copy
> of dj, and I've not tested it with apps that also use the dj plugin,
> but it should play nicely. Please do test, though.
> How to make it work?
> In your define_index block:
> set_property :delta => :delayed
> To get the background task running:
> rake thinking_sphinx:delta
> or
> rake ts:delta
> I'm not convinced about the task name, so you're warned it may change
> (especially when deltas-by-timestamps is added - soon!).
> I've tested it on various Rails versions (including 1.2.6), and as far
> as I can tell, it works as it should. I've added cucumber features to
> test it too, so I'm pretty happy with how it runs. That said, would
> appreciate hearing how it works for everyone else :)
>> Well, it's been a long time coming, but there's finally support for
>> delayed deltas, using delayed_job (fittingly). It is an internal copy
>> of dj, and I've not tested it with apps that also use the dj plugin,
>> but it should play nicely. Please do test, though.
>> How to make it work?
>> In your define_index block:
>> set_property :delta => :delayed
>> To get the background task running:
>> rake thinking_sphinx:delta
>> or
>> rake ts:delta
>> I'm not convinced about the task name, so you're warned it may change
>> (especially when deltas-by-timestamps is added - soon!).
>> I've tested it on various Rails versions (including 1.2.6), and as
>> far
>> as I can tell, it works as it should. I've added cucumber features to
>> test it too, so I'm pretty happy with how it runs. That said, would
>> appreciate hearing how it works for everyone else :)