Don't optimize and commit on every document add
robertDouglass - February 8, 2009 - 22:46
| Project: | Webmail Plus |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | ApacheSolr |
Description
<?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
