lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
Subject Re: [jira] Created: (LUCENE-856) Optimize segment merging
Date Thu, 05 Apr 2007 11:09:50 GMT

"Ning Li" <ning.li.li@gmail.com> wrote:
> On 4/4/07, Michael McCandless (JIRA) <jira@apache.org> wrote:
> > Note that for "autoCommit=false", this optimization is somewhat less
> > important, depending on how often you actually close/open a new
> > IndexWriter.  In the extreme case, if you open a writer, add 100 MM
> > docs, close the writer, then no segment merges happen at all.
> 
> I think in the current code, the merge behavior for "autoCommit=false"
> is the same as that for "autoCommit=true", isn't it?

Right, the current code implements the autoCommit=false case rather
inefficiently.  While LUCENE-843 fixes that to some extent, it must
still do its own merging of "flushed" segments.  But that merging
ought to be faster since it does not merge the term vectors & stored
fields.  I will run a test to compare (the test I ran for that issue
was with autoCommit=true).

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message