I'm in total agreement. I started building it out and figured it would start to get really ugly with other async tools.
Here's what I propose - in addition to setting delta to the defined subset of symbols, you could also assign a instance of a class that inherits from ThinkingSphinx::Deltas::DefaultDelta. So the call could look like what's in the gist below. http://gist.github.com/67258 Let me know which syntax style you prefer and I'll build it out. Thanks, Dan On Thu, Feb 19, 2009 at 6:38 PM, Pat Allan <[email protected]> wrote: > > Hi Dan > > I'm loathe to add a new delta adapter for every async tool... but, > perhaps you could refactor the delayed-job one so it's relatively > generic, then add the specific delayed job one in (or leave the > current code as it is), and build the workling one, but keep it out of > the TS source - add it in RAILS_ROOT/lib or something, then put it on > github? I guess you could wrap it into a plugin, although that feels a > little like overkill. > > You'd also need to figure out how to hook it into TS so it accepts it > as a delta option. alias_method possibly, but if there's a more > elegant solution, that'd be fantastic. > > That said, I've not used Workling (although I had spoken with Rany > about what queuing system would be best for TS), so I'm not sure how > much work it'd be. > > Cheers > > -- > Pat > > On 20/02/2009, at 4:22 AM, Dan Pickett wrote: > > > Would it be bloat to add an adapter for async delta indexing with > > Workling? I have a bunch of process monitoring setup with it, and > > would prefer to have one job manager per application. > > > > What does everyone think? > > > > Regards, > > Dan > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
