When Sphinx indexes while the daemon's running, it'll switch the index files 
over when indexing's done (not when it starts), so there may be a brief glitch 
of downtime when that switch is happening, but beyond that, it's fine.

That said, I'd not recommend a continuous loop of delta indexing - you'll still 
need to perform full indexing regularly (to keep the deltas small), and that 
constant load on Sphinx getting it to reload the delta index files is probably 
not a good idea.

-- 
Pat

On 08/03/2013, at 6:10 AM, yekta wrote:

> Gotcha,
> 
> I have one question about the delayed delta approach: if the delta's are 
> continuously being indexed, will there ever be a time when the data in delta 
> is not searchable because of a currently running index on the delta indices?
> 
> In other words if I just set up an infinite loop to continuously index the 
> deltas would that hamper the search-ability of the data in the delta indices?
> 
> Thanks
> 
> 
> On Thursday, March 7, 2013 5:30:00 AM UTC-6, Pat Allan wrote:
> 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.
>  
>  

 

-- 
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.


Reply via email to