[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] sup with 120K mail



Excerpts from William Morgan's message of Tue Dec 29 18:33:46 -0500 2009:
> Reformatted excerpts from William Morgan's message of 2009-12-28:
> > Reformatted excerpts from Tero Tilus's message of 2009-12-28:
> > > William Morgan, 2009-12-28 22:17:
> > > > Is this with Xapian?
> > > 
> > > Goodness!  Forgot the most important part...
> > > 
> > > Yes.  Xapian and git next.
> > 
> > Yeah, Xapian is the cause of that delay on quit. I think there was a
> > workaround posted at some point about an environment variable or
> > something...
> 
> Ah yes, try setting XAPIAN_FLUSH_THRESHOLD=10 when running sup (but not
> sup-sync!) and see if that reduces the delay on quit.
> 
> Unfortunately there's no way (that I know of) to force a Xapian flush
> from within Ruby. Correction from Xapian experts welcome.

Xapian::WritableDatabase#flush

This should really be called from XapianIndex#save_index, along with a
friendly message explaining what's going on.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk