Thanks for the kind words - although TS isn't quite as smart as you're hoping. It doesn't queue up delta changes - if more than one happens in quick succession, then it's going to try to run `indexer --rotate foo_delta`.
This is one of the reasons it's much better to use ts-delayed-delta, ts-resque-delta or ts-sidekiq-delta, because then you can put something in place to ensure duplicate jobs are ignored - happens by default with ts-delayed-delta, and I've written up some Sidekiq middleware for that option too: https://gist.github.com/pat/4982428 It also removes deltas from your standard response cycle - faster responses is better, right? :) -- Pat On 07/03/2013, at 9:26 AM, yekta wrote: > Hi, > > I've got a 2.3.x Rails app with Thinking-Sphinx 1.4.x with working deltas. > The current implementation there is that I flip a delta field bit which > through TS triggers a delta re-index (which appears in my logs). > > My guess is that TS has to reindex the delta indices every time that bit is > flipped, if that's a correct assumption I'm wondering how are delta indices > being re-indexed within Thinking-Sphinx, I mean its not a shell script with > `indexer -all --rotate` being run so how does TS handle that? > > Also again assuming that TS has to reindex the delta incides every time the > delta bit is flipped (which I believe is the case), how are you waiting to > re-index, until the pid is not in use anymore? > > Let's say 50 saves occur around the same time which all trigger the deltas, > will the response cycle need to wait for the available pid and the reindexing > to occur per-request? > > I ask because I am implementing sphinx with django using django-sphinx and > deltas are not as elegantly handled as they are in Thinking-Sphinx. > > A big +1 for Thinking Sphinx, seriously. > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
