mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Conpherenece - improve performance by not fetching data as often from D12347
Summary: Turns out the pertinent views don't use this data anyway. Additonally, change the remaining pathway to fetch 15% of the rows it fetched in D12347. Fixes T7815. Test Plan: clicked around and things worked. my instance always feels snappy though Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7815 Differential Revision: https://secure.phabricator.com/D12399
This commit is contained in:
parent
d096b9c151
commit
f12839ffd4
5 changed files with 3 additions and 5 deletions
|
@ -16,7 +16,6 @@ final class ConpherenceColumnViewController extends
|
|||
$latest_conpherences = id(new ConpherenceThreadQuery())
|
||||
->setViewer($user)
|
||||
->withPHIDs($conpherence_phids)
|
||||
->needTransactions(true)
|
||||
->needParticipantCache(true)
|
||||
->execute();
|
||||
$latest_conpherences = mpull($latest_conpherences, null, 'getPHID');
|
||||
|
|
|
@ -138,7 +138,6 @@ final class ConpherenceListController extends ConpherenceController {
|
|||
$conpherences = id(new ConpherenceThreadQuery())
|
||||
->setViewer($user)
|
||||
->withPHIDs($conpherence_phids)
|
||||
->needTransactions(true)
|
||||
->needParticipantCache(true)
|
||||
->execute();
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ final class ConpherenceNotificationPanelController
|
|||
->setViewer($user)
|
||||
->withPHIDs(array_keys($participant_data))
|
||||
->needTransactions(true)
|
||||
->setTransactionLimit(3 * 5)
|
||||
->needParticipantCache(true)
|
||||
->execute();
|
||||
}
|
||||
|
|
|
@ -380,14 +380,14 @@ final class ConpherenceUpdateController
|
|||
$need_widget_data = false;
|
||||
$need_transactions = false;
|
||||
$need_participant_cache = true;
|
||||
$need_transactions = true;
|
||||
switch ($action) {
|
||||
case ConpherenceUpdateActions::METADATA:
|
||||
break;
|
||||
case ConpherenceUpdateActions::LOAD:
|
||||
$need_transactions = true;
|
||||
break;
|
||||
case ConpherenceUpdateActions::MESSAGE:
|
||||
case ConpherenceUpdateActions::ADD_PERSON:
|
||||
$need_transactions = true;
|
||||
$need_widget_data = true;
|
||||
break;
|
||||
case ConpherenceUpdateActions::REMOVE_PERSON:
|
||||
|
|
|
@ -27,7 +27,6 @@ final class ConpherenceThreadSearchEngine
|
|||
|
||||
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
|
||||
$query = id(new ConpherenceThreadQuery())
|
||||
->needTransactions(true)
|
||||
->needParticipantCache(true);
|
||||
|
||||
$participant_phids = $saved->getParameter('participantPHIDs', array());
|
||||
|
|
Loading…
Reference in a new issue