mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
two more indexes to speed up sync
This commit is contained in:
parent
e0c80bc1c9
commit
3123d9c2e2
@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$setup_info['calendar']['name'] = 'calendar';
|
$setup_info['calendar']['name'] = 'calendar';
|
||||||
$setup_info['calendar']['version'] = '1.7.008';
|
$setup_info['calendar']['version'] = '1.7.010';
|
||||||
$setup_info['calendar']['app_order'] = 3;
|
$setup_info['calendar']['app_order'] = 3;
|
||||||
$setup_info['calendar']['enable'] = 1;
|
$setup_info['calendar']['enable'] = 1;
|
||||||
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index';
|
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index';
|
||||||
@ -65,8 +65,3 @@ $setup_info['calendar']['check_install'] = array(
|
|||||||
'from' => 'Calendar',
|
'from' => 'Calendar',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ $phpgw_baseline = array(
|
|||||||
),
|
),
|
||||||
'pk' => array('cal_id'),
|
'pk' => array('cal_id'),
|
||||||
'fk' => array(),
|
'fk' => array(),
|
||||||
'ix' => array(),
|
'ix' => array('cal_uid','cal_owner'),
|
||||||
'uc' => array()
|
'uc' => array()
|
||||||
),
|
),
|
||||||
'egw_cal_holidays' => array(
|
'egw_cal_holidays' => array(
|
||||||
|
@ -2051,3 +2051,28 @@ function calendar_upgrade1_7_007()
|
|||||||
}
|
}
|
||||||
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.008';
|
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.008';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an index over egw_cal_user.cal_user_type and cal_user_id, to speed up calendar queries
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function calendar_upgrade1_7_008()
|
||||||
|
{
|
||||||
|
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user',array('cal_user_type','cal_user_id'));
|
||||||
|
|
||||||
|
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';
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user