trying to reduce calls to get_rows

This commit is contained in:
Klaus Leithoff 2013-05-28 14:10:17 +00:00
parent 4ba51c410a
commit 0e0fff38ef
2 changed files with 3 additions and 3 deletions

View File

@ -1086,7 +1086,7 @@ unset($query['actions']);
$rows = $this->header2gridelements($sortResult['header'],$cols, $_folderName, $folderType,$previewMessage); $rows = $this->header2gridelements($sortResult['header'],$cols, $_folderName, $folderType,$previewMessage);
//error_log(__METHOD__.__LINE__.array2string($rows)); //error_log(__METHOD__.__LINE__.array2string($rows));
$endtime = microtime(true) - $starttime; $endtime = microtime(true) - $starttime;
//error_log(__METHOD__.__LINE__.' SelectedFolder:'.$query['selectedFolder'].' Start:'.$query['start'].' NumRows:'.$query['num_rows'].' Took:'.$endtime); error_log(__METHOD__.__LINE__.' SelectedFolder:'.$query['selectedFolder'].' Start:'.$query['start'].' NumRows:'.$query['num_rows'].' Took:'.$endtime);
return $rowsFetched['messages']; return $rowsFetched['messages'];
} }

View File

@ -576,7 +576,7 @@ app.mail = AppJS.extend(
} }
var nm = _widget.getRoot().getWidgetById('nm'); var nm = _widget.getRoot().getWidgetById('nm');
nm.activeFilters["selectedFolder"] = folder; nm.activeFilters["selectedFolder"] = folder;
nm.applyFilters(); //nm.applyFilters();// its done in refrefreshMessageGrid
var msg = _widget.getRoot().getWidgetById('msg'); var msg = _widget.getRoot().getWidgetById('msg');
if (msg) if (msg)
{ {
@ -591,7 +591,7 @@ app.mail = AppJS.extend(
myMsg = (displayname?displayname:folder)+' '+egw.lang('selected'); myMsg = (displayname?displayname:folder)+' '+egw.lang('selected');
app.mail.app_refresh(myMsg, 'mail'); app.mail.app_refresh(myMsg, 'mail');
} }
//mail_refreshMessageGrid(); //mail_refreshMessageGrid();// its done in refreshFolderStatus already
this.mail_refreshFolderStatus(folder,'forced'); this.mail_refreshFolderStatus(folder,'forced');
this.mail_startTimerFolderStatusUpdate(this.mail_refreshTimeOut); this.mail_startTimerFolderStatusUpdate(this.mail_refreshTimeOut);
this.mail_fetchCurrentlyFocussed(null,true); this.mail_fetchCurrentlyFocussed(null,true);