title: Solr updates are very slow
body: <p>I am seeing extremely slow Solr updates in my database. The database only has 900 documents.  We use autocommit with the following settings, and once in a while autocommit is taking long time blocking updates:</p>
  
  <pre><code>&lt;autoCommit&gt; 
    &lt;maxDocs&gt;10000&lt;/maxDocs&gt;
    &lt;maxTime&gt;1000&lt;/maxTime&gt;
  &lt;/autoCommit&gt;
  </code></pre>
  
  <p>What in the world can be happening for 74 seconds with 900 documents.</p>
  
  <p>Ideas?</p>
  
  <p>Here is the log snippet:</p>
  
  <p>Oct 18, 2010 11:52:46 AM org.apache.solr.core.SolrCore execute
  INFO: [] webapp=/solr path=/update params={} status=0 <strong>QTime=59569</strong> 
  Oct 18, 2010 11:52:46 AM org.apache.solr.update.SolrIndexWriter getDirectory</p>
  
  <p>Oct 18, 2010 11:53:21 AM org.apache.solr.core.SolrCore execute
  INFO: [] webapp=/solr path=/update params={} status=0 <strong>QTime=33586</strong> 
  Oct 18, 2010 11:53:21 AM org.apache.solr.update.processor.LogUpdateProcessor finish</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.core.SolrCore execute
  INFO: [] webapp=/solr path=/update params={} status=0 <strong>QTime=76098</strong> 
  Oct 18, 2010 11:54:41 AM org.apache.solr.update.DirectUpdateHandler2 commit</p>
  
  <p>And the commit log:</p>
  
  <p>Oct 18, 2010 11:54:00 AM org.apache.solr.update.DirectUpdateHandler2 commit</p>
  
  <p>INFO: start commit(optimize=false,waitFlush=true,waitSearcher=true)</p>
  
  <p>Oct 18, 2010 11:54:00 AM org.apache.solr.search.SolrIndexSearcher </p>
  
  <p>INFO: Opening Searcher@29b003 main</p>
  
  <p>Oct 18, 2010 11:54:00 AM org.apache.solr.update.DirectUpdateHandler2 commit</p>
  
  <p>INFO: end_commit_flush</p>
  
  <p>Oct 18, 2010 11:54:00 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming Searcher@29b003 main from Searcher@718c93 main
          filterCache{lookups=0,hits=0,hitratio=0.00,inserts=512,evictions=0,size=257,warmupTime=19294,cumulative_lookups=3330661,cumulative_hits=12
  5437,cumulative_hitratio=0.03,cumulative_inserts=3207537,cumulative_evictions=3184094}</p>
  
  <p>Oct 18, 2010 11:54:20 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming result for Searcher@29b003 main
          filterCache{lookups=0,hits=0,hitratio=0.00,inserts=256,evictions=0,size=256,warmupTime=19739,cumulative_lookups=3330661,cumulative_hits=12
  5437,cumulative_hitratio=0.03,cumulative_inserts=3207537,cumulative_evictions=3184094}</p>
  
  <p>Oct 18, 2010 11:54:20 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming Searcher@29b003 main from Searcher@718c93 main
          queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=256,evictions=0,size=256,warmupTime=18604,cumulative_lookups=3084,cumulative_hits=
  996,cumulative_hitratio=0.32,cumulative_inserts=2313,cumulative_evictions=0}</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming result for Searcher@29b003 main
          queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=256,evictions=0,size=256,warmupTime=19925,cumulative_lookups=3084,cumulative_hits=
  996,cumulative_hitratio=0.32,cumulative_inserts=2313,cumulative_evictions=0}</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming Searcher@29b003 main from Searcher@718c93 main
          documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=41846,cumulative_hits=33712,cumu
  lative_hitratio=0.80,cumulative_inserts=8134,cumulative_evictions=0}</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.search.SolrIndexSearcher warm</p>
  
  <p>INFO: autowarming result for Searcher@29b003 main
          documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=41846,cumulative_hits=33712,cumu
  lative_hitratio=0.80,cumulative_inserts=8134,cumulative_evictions=0}</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.core.SolrCore registerSearcher</p>
  
  <p>INFO: [] Registered new searcher Searcher@29b003 main</p>
  
  <p>Oct 18, 2010 11:54:40 AM org.apache.solr.search.SolrIndexSearcher close</p>