FYI - there is an issue related to merging likely causing this slowdown which are addressed in https://issues.apache.org/jira/browse/LUCENE-3515 for those who are interested in this issue.
simon On Tue, Oct 11, 2011 at 4:01 PM, Marc Sturlese <marc.sturl...@gmail.com> wrote: > Simon, > In this example I've set the DEFAULT_MAX_THREAD_STATES of > DocumentsWriterPerThreadPool to 1. I've debugged the code and I've made sure > that ThreadAffinityDocumentsWriterThreadPool has the value set to 1 (as I > was trying to make it behave similar to lucene 3.4 using a single thread). > I'm indexing using EmbeddedSolrServer. Provably I'm missing something or > I've not configured some value properly but can't figure out what. > > here is the IndexWriterConfig#toString(): > analyzer=org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer > delPolicy=org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy > commit=null > openMode=CREATE_OR_APPEND > similarityProvider=org.apache.solr.search.SolrSimilarityProvider > termIndexInterval=32 > mergeScheduler=org.apache.lucene.index.ConcurrentMergeScheduler > default WRITE_LOCK_TIMEOUT=1000 > writeLockTimeout=1000 > maxBufferedDeleteTerms=-1 > ramBufferSizeMB=32.0 > maxBufferedDocs=-1 > mergedSegmentWarmer=null > codecProvider=org.apache.lucene.index.codecs.CoreCodecProvider@a50a649 > mergePolicy=[TieredMergePolicy: maxMergeAtOnce=10, > maxMergeAtOnceExplicit=30, maxMergedSegmentMB=5120.0, floorSegmentMB=2.0, > expungeDeletesPctAllowed=10.0, segmentsPerTier=10.0, useCompoundFile=false, > noCFSRatio=0.1 > indexerThreadPool=org.apache.lucene.index.ThreadAffinityDocumentsWriterThreadPool@643cb075 > readerPooling=false > readerTermsIndexDivisor=1 > flushPolicy=org.apache.lucene.index.FlushByRamOrCountsPolicy@4c6504bc > perThreadHardLimitMB=1945 > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/lucene-4-0-and-DocumentsWriterPerThreadPool-compared-to-lucene-3-4-tp3412388p3412659.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org