Browse Source

[svn r14276] Added an index on tool+ref in item_property table

Yannick Warnier 17 years ago
parent
commit
b7e9999149

+ 1 - 0
main/inc/lib/add_course.lib.inc.php

@@ -805,6 +805,7 @@ function update_Db_course($courseDbName)
 		start_visible datetime NOT NULL default '0000-00-00 00:00:00',
 		end_visible datetime NOT NULL default '0000-00-00 00:00:00'
 		) TYPE=MyISAM;");
+	api_sql_query("ALTER TABLE `$TABLEITEMPROPERTY` ADD INDEX (tool,ref)");
 
 	/*
 	-----------------------------------------------------------

+ 1 - 0
main/install/migrate-db-1.8.4-1.8.5-pre.sql

@@ -72,3 +72,4 @@ ALTER TABLE dropbox_post ADD session_id SMALLINT UNSIGNED NOT NULL ;
 ALTER TABLE dropbox_post ADD INDEX ( session_id ) ;
 ALTER TABLE dropbox_file ADD session_id SMALLINT UNSIGNED NOT NULL ;
 ALTER TABLE dropbox_file ADD INDEX ( session_id ) ;
+ALTER TABLE item_property ADD INDEX (tool,ref);