lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armbrust, Daniel C." <>
Subject RE: large index -> slow optimize()
Date Fri, 22 Nov 2002 19:13:02 GMT
Note - this is not a fact, this is what I think I know about how it works.....

My working assumption has been its just a matter of disk speed, since during optimize, the
entire index is copied into new files, and then at the end, the old one is removed.  So the
more GB you have to copy, the longer it takes.

This is also the reason that you need double the size of your index available on the drive
in order to perform an optimize, correct?  Or does this only apply when you are merging indexes?


-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Friday, November 22, 2002 12:52 PM
Subject: large index -> slow optimize()


I am building an index with a few 1M documents, and every X documents
added to the index I call optimize() on the IndexWriter.
I have noticed that as the index grows this calls takes more and more
time, even though the number of new segments that need to be merged is
the same between every optimize() call.
I suspect this is normal and not a bug, but is there no way around
that?  Do you know which part is the part that takes longer and longer
as the index grows?


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message