diff --git a/code/solr/Solr.php b/code/solr/Solr.php index 92f28bc..a88444d 100644 --- a/code/solr/Solr.php +++ b/code/solr/Solr.php @@ -270,6 +270,9 @@ class Solr_Reindex extends BuildTask { // If we're in dev mode, commit more often for fun and profit if (Director::isDev()) Solr::service($index)->commit(); + + // This will slow down things a tiny bit, but it is done so that we don't timeout to the database during a reindex + DB::query('SELECT 1'); } } }