shorten index on egw_sqlfs.fs_name to improve performance

This commit is contained in:
Ralf Becker 2015-07-19 09:12:47 +00:00
parent 970078e970
commit a9c4060dd6
2 changed files with 15 additions and 2 deletions

View File

@ -366,7 +366,7 @@ $phpgw_baseline = array(
),
'pk' => array('fs_id'),
'fk' => array(),
'ix' => array(array('fs_dir','fs_active','fs_name')),
'ix' => array(array('fs_dir','fs_active','fs_name(16)')),
'uc' => array()
),
'egw_index_keywords' => array(

View File

@ -722,7 +722,7 @@ function phpgwapi_upgrade14_2_024()
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] =
empty($GLOBALS['run-from-upgrade14_2_001']) ? '14.3' : '14.2.025';
empty($GLOBALS['run-from-upgrade14_2_001']) ? '14.2.026' : '14.2.025';
}
@ -752,5 +752,18 @@ function phpgwapi_upgrade14_2_025()
'default' => ''
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.2.026';
}
/**
* Shorten index on egw_sqlfs.fs_name to improve performance
*
* @return string
*/
function phpgwapi_upgrade14_2_026()
{
$GLOBALS['egw_setup']->oProc->DropIndex('egw_sqlfs', array('fs_dir','fs_active','fs_name'));
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_sqlfs', array('fs_dir','fs_active','fs_name(16)'));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3';
}