? boost-623540.patch
Index: boost.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.admin.inc,v
retrieving revision 1.1.2.1.2.3.2.106
diff -u -p -r1.1.2.1.2.3.2.106 boost.admin.inc
--- boost.admin.inc	6 Nov 2009 10:46:01 -0000	1.1.2.1.2.3.2.106
+++ boost.admin.inc	9 Nov 2009 06:14:46 -0000
@@ -625,6 +625,12 @@ function boost_admin_boost_performance_p
     '#description'   => !BOOST_CRAWL_ON_CRON ? t('Enable the crawler first to enable this checkbox.') : t('Preemptively cache all urls found in the Drupal url_alias table. This will crawl that page even if it is not expired. Enable & run cron to get the boost cache loaded.'),
     '#disabled' => !BOOST_CRAWL_ON_CRON
   );
+  $form['crawler']['boost_crawl_db_import_size'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Number of URLs to grab at a time when loading up the crawler table'),
+    '#default_value' => BOOST_CRAWL_DB_IMPORT_SIZE,
+    '#description'   => t('You might need to adjust this (shrink) if you get mysql errors when starting the crawler. Increase if your trying load up the crawler with a lot of URLs, as this can make the operation be faster.'),
+  );
   $form['crawler']['boost_crawler_throttle'] = array(
     '#type'          => 'textfield',
     '#title'         => t('Crawler Throttle'),
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.238
diff -u -p -r1.3.2.2.2.5.2.238 boost.module
--- boost.module	8 Nov 2009 07:29:38 -0000	1.3.2.2.2.5.2.238
+++ boost.module	9 Nov 2009 06:14:48 -0000
@@ -87,9 +87,10 @@ define('BOOST_LOOPBACK_BYPASS',      BOO
 define('BOOST_PUSH_HTML',            variable_get('boost_push_html', TRUE));
 define('BOOST_PUSH_XML',             variable_get('boost_push_xml', TRUE));
 define('BOOST_PUSH_JSON',            variable_get('boost_push_json', TRUE));
+define('BOOST_CRAWL_URL_ALIAS',      variable_get('boost_crawl_url_alias', FALSE));
+define('BOOST_CRAWL_DB_IMPORT_SIZE', variable_get('boost_crawl_db_import_size', 10000));
 define('BOOST_CRAWLER_THROTTLE',     variable_get('boost_crawler_throttle', 0));
 define('BOOST_CRAWLER_THREADS',      variable_get('boost_crawler_threads', 2));
-define('BOOST_CRAWL_URL_ALIAS',      variable_get('boost_crawl_url_alias', FALSE));
 define('BOOST_MAX_THREADS',          8);
 
 // Requires Boost Functions or global scope, Define These Last
@@ -3393,8 +3394,8 @@ function _boost_set_time_limit($time_lim
  * @param $placeholders
  *   array of db_query placeholders; like %d or '%s'
  * @param $values
- *   array of values you wish to be insterted. If you have 3 fields then the
- *   array should be structed like
+ *   array of values you wish to be inserted. If you have 3 fields then the
+ *   array should be structured like
  *    array($field_1_value_A, $field_2_value_A, $field_3_value_A,
  *           $field_1_value_B, $field_2_value_B, $field_3_value_B);
  * @return
@@ -3467,8 +3468,8 @@ function boost_db_delete_in_multi($table
  * @param $where_placeholder
  *   db_query placeholders; like %d or '%s'
  * @param $data
- *   array of values you wish to be insterted. If you have 3 fields then the
- *   array should be structed like
+ *   array of values you wish to be inserted. If you have 3 fields then the
+ *   array should be structured like
  *    array($field_1_value_A, $field_2_value_A, $field_3_value_A,
  *           $field_1_value_B, $field_2_value_B, $field_3_value_B);
  * @return
@@ -3897,7 +3898,7 @@ function boost_async_call_crawler($self,
  */
 function boost_crawler_add_to_table($push_setting, $extension, $expire) {
   // Insert batch of URL's into boost_crawler table
-  $count = 10000;
+  $count = BOOST_CRAWL_DB_IMPORT_SIZE;
   $total = boost_crawler_count($push_setting, $extension, $expire);
   $loaded = variable_get('boost_crawler_loaded_count' . $extension, 0);
   if ($total > $loaded) {
@@ -3984,7 +3985,7 @@ function boost_crawler_add_alias_to_tabl
   if (!variable_get('boost_crawl_url_alias', FALSE)) {
     return TRUE;
   }
-  $count = 10000;
+  $count = BOOST_CRAWL_DB_IMPORT_SIZE;
   $chunks = 0;
   $loop_counter = 0;
 
