cvs diff: Diffing .
cvs diff: Diffing database
Index: database/database.mysql
===================================================================
RCS file: /cvs/drupal/drupal/database/database.mysql,v
retrieving revision 1.230
diff -u -F^f -r1.230 database.mysql
--- database/database.mysql     14 Mar 2006 14:04:13 -0000      1.230
+++ database/database.mysql     18 Mar 2006 12:40:27 -0000
@@ -386,7 +386,8 @@
   lid int(11) NOT NULL auto_increment,
   location varchar(255) NOT NULL default '',
   source blob NOT NULL,
-  PRIMARY KEY (lid)
+  PRIMARY KEY (lid),
+  KEY source (source(30))
 )
 /*!40100 DEFAULT CHARACTER SET utf8 */ ;
 
Index: database/database.pgsql
===================================================================
RCS file: /cvs/drupal/drupal/database/database.pgsql,v
retrieving revision 1.171
diff -u -F^f -r1.171 database.pgsql
--- database/database.pgsql     4 Mar 2006 18:12:10 -0000       1.171
+++ database/database.pgsql     18 Mar 2006 12:40:31 -0000
@@ -361,13 +361,13 @@
 -- Table structure for locales_source
 --
 
-
 CREATE TABLE locales_source (
   lid SERIAL,
   location varchar(255) NOT NULL default '',
   source text NOT NULL,
   PRIMARY KEY (lid)
 );
+CREATE INDEX locales_source_source_idx ON locales_source(source);
 
 --
 -- Table structure for locales_target
Index: database/updates.inc
===================================================================
RCS file: /cvs/drupal/drupal/database/updates.inc,v
retrieving revision 1.218
diff -u -F^f -r1.218 updates.inc
--- database/updates.inc        12 Mar 2006 22:25:00 -0000      1.218
+++ database/updates.inc        18 Mar 2006 12:40:34 -0000
@@ -1828,3 +1828,22 @@ function system_update_178() {
 
   return array();
 }
+
+/**
+ * Performance update for queries that are related to the locale.module
+ */
+function system_update_179() {
+  $ret = array();
+
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql('ALTER TABLE {locales_source} ADD KEY source (source(30))');
+      break;
+    case 'pgsql':
+      $ret[] = update_sql("CREATE INDEX {locales_source}_source_idx on {locales_source}(source)");
+      break;
+  }
+
+  return $ret;
+}
cvs diff: Diffing includes
cvs diff: Diffing misc
cvs diff: Diffing modules
cvs diff: Diffing scripts
cvs diff: Diffing sites
cvs diff: Diffing sites/default
