浏览代码

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

Yannick Warnier 17 年之前
父节点
当前提交
b7e9999149
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      main/inc/lib/add_course.lib.inc.php
  2. 1 0
      main/install/migrate-db-1.8.4-1.8.5-pre.sql

+ 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);