Skip to content

Commit f12839f

Browse files
committed
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
1 parent d096b9c commit f12839f

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

src/applications/conpherence/controller/ConpherenceColumnViewController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public function handleRequest(AphrontRequest $request) {
1616
$latest_conpherences = id(new ConpherenceThreadQuery())
1717
->setViewer($user)
1818
->withPHIDs($conpherence_phids)
19-
->needTransactions(true)
2019
->needParticipantCache(true)
2120
->execute();
2221
$latest_conpherences = mpull($latest_conpherences, null, 'getPHID');

src/applications/conpherence/controller/ConpherenceListController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ private function loadConpherenceThreadData($participation) {
138138
$conpherences = id(new ConpherenceThreadQuery())
139139
->setViewer($user)
140140
->withPHIDs($conpherence_phids)
141-
->needTransactions(true)
142141
->needParticipantCache(true)
143142
->execute();
144143

src/applications/conpherence/controller/ConpherenceNotificationPanelController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function handleRequest(AphrontRequest $request) {
1818
->setViewer($user)
1919
->withPHIDs(array_keys($participant_data))
2020
->needTransactions(true)
21+
->setTransactionLimit(3 * 5)
2122
->needParticipantCache(true)
2223
->execute();
2324
}

src/applications/conpherence/controller/ConpherenceUpdateController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,14 @@ private function loadAndRenderUpdates(
380380
$need_widget_data = false;
381381
$need_transactions = false;
382382
$need_participant_cache = true;
383-
$need_transactions = true;
384383
switch ($action) {
385384
case ConpherenceUpdateActions::METADATA:
386-
break;
387385
case ConpherenceUpdateActions::LOAD:
386+
$need_transactions = true;
388387
break;
389388
case ConpherenceUpdateActions::MESSAGE:
390389
case ConpherenceUpdateActions::ADD_PERSON:
390+
$need_transactions = true;
391391
$need_widget_data = true;
392392
break;
393393
case ConpherenceUpdateActions::REMOVE_PERSON:

src/applications/conpherence/query/ConpherenceThreadSearchEngine.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function buildSavedQueryFromRequest(AphrontRequest $request) {
2727

2828
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
2929
$query = id(new ConpherenceThreadQuery())
30-
->needTransactions(true)
3130
->needParticipantCache(true);
3231

3332
$participant_phids = $saved->getParameter('participantPHIDs', array());

0 commit comments

Comments
 (0)