two more indexes to speed up sync

This commit is contained in:
Ralf Becker 2010-04-14 12:19:02 +00:00
parent f4f8464414
commit a1332b56cc
3 changed files with 22 additions and 9 deletions

View File

@ -10,7 +10,7 @@
*/
$setup_info['calendar']['name'] = 'calendar';
$setup_info['calendar']['version'] = '1.7.009';
$setup_info['calendar']['version'] = '1.7.010';
$setup_info['calendar']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1;
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index';
@ -65,3 +65,4 @@ $setup_info['calendar']['check_install'] = array(
'from' => 'Calendar',
),
);

View File

@ -34,7 +34,7 @@ $phpgw_baseline = array(
),
'pk' => array('cal_id'),
'fk' => array(),
'ix' => array(),
'ix' => array('cal_uid','cal_owner'),
'uc' => array()
),
'egw_cal_holidays' => array(

View File

@ -2065,3 +2065,15 @@ function calendar_upgrade1_7_008()
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.009';
}
/**
* Create an index over egw_cal.cal_uid and cal_owner, to speed up calendar queries specially sync
*
* @return string
*/
function calendar_upgrade1_7_009()
{
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_uid');
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_owner');
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.010';
}