mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
*Calendar/CalDAV: Add index for cal_modified and cal_user_modified to improve performance of ctag and etag generation on big installtions
This commit is contained in:
parent
2e8ec69619
commit
fc799e99a7
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
$setup_info['calendar']['name'] = 'calendar';
|
||||
$setup_info['calendar']['version'] = '1.9.003';
|
||||
$setup_info['calendar']['version'] = '1.9.004';
|
||||
$setup_info['calendar']['app_order'] = 3;
|
||||
$setup_info['calendar']['enable'] = 1;
|
||||
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index';
|
||||
@ -68,3 +68,5 @@ $setup_info['calendar']['check_install'] = array(
|
||||
'from' => 'Calendar',
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@ $phpgw_baseline = array(
|
||||
),
|
||||
'pk' => array('cal_id'),
|
||||
'fk' => array(),
|
||||
'ix' => array('cal_uid','cal_owner','cal_deleted','caldav_name'),
|
||||
'ix' => array('cal_uid','cal_owner','cal_modified','cal_deleted','caldav_name'),
|
||||
'uc' => array()
|
||||
),
|
||||
'egw_cal_holidays' => array(
|
||||
@ -82,7 +82,7 @@ $phpgw_baseline = array(
|
||||
),
|
||||
'pk' => array('cal_id','cal_recur_date','cal_user_type','cal_user_id'),
|
||||
'fk' => array(),
|
||||
'ix' => array(array('cal_user_type','cal_user_id')),
|
||||
'ix' => array('cal_user_modified',array('cal_user_type','cal_user_id')),
|
||||
'uc' => array()
|
||||
),
|
||||
'egw_cal_extra' => array(
|
||||
|
@ -2067,3 +2067,14 @@ function calendar_upgrade1_9_002()
|
||||
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.003';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add index for cal_modified and cal_user_modified to improve ctag and etag generation on big installtions
|
||||
*/
|
||||
function calendar_upgrade1_9_003()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_modified');
|
||||
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user','cal_user_modified');
|
||||
|
||||
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.004';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user