Download & Extend

Don't optimize and commit on every document add

Project:Webmail Plus
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:ApacheSolr

Issue Summary

<?php

     wpd
($document);
         if (
is_object($solr)) {
             try {
          
$solr -> addDocument($document);
          
$solr -> commit();
          
$solr -> optimize(FALSE, FALSE);                
             }
?>

Don't commit and optimize on every document. See what we did here: http://drupal.org/node/292662

nobody click here