Also, there's already an existing gem for Workling: http://github.com/dpickett/workling_delta_indexer/tree/master
-- Pat On 24/08/2009, at 3:37 AM, gobigdave wrote: > > This is exactly why I figured I would ask first. Thank you for the > info! > > -Dave > > On Aug 23, 10:30 pm, James Healy <[email protected]> wrote: >> gobigdave wrote: >>> I'm looking to use delta indexes, but I want to use something >>> like :delayed. The issue I have is that I already have a background >>> processing system (starling/workling), and I would rather not >>> introduce DelayedJob (as good as it may be). Before I jump in and >>> figure out a way to setup my own callbacks to make this work, I was >>> hoping someone here might have some recommendations for the best >>> direction to take. >> >> It's actually easier than you think to implement your own background >> delta processing. >> >> Create a new class in your lib/ dir (called MyDelta or something >> similar) and give it an index() method that queues your delta index >> jobs. Here's one from my project that should get you >> started:http://gist.github.com/173609 >> . There are other examples in the TS source >> in lib/thinking-sphinx/deltas/ >> >> To use the new handler, enable deltas in your TS index blocks like >> so: >> >> set_property :delta => MyDelta >> >> -- James Healy <jimmy-at-deefa-dot-com> Mon, 24 Aug 2009 12:23:56 >> +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 -~----------~----~----~----~------~----~------~--~---
