1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/differential/query
epriestley 50ed42761c Don't issue a bazillion queries to load Differential object lists
Summary:
Ref T3496. Currently, we call loadAssets() on each revision table, which invokes a new revision query and a pile of subqueries.

Instead, add `needFlags()` and `needDrafts()` to `RevisionQuery`. Some day these could perhaps be more generic.

Test Plan:
  - Viewed home, differential, etc., no longer saw 9203809238 queries being run for no reason.
  - Drafts and flags still appear properly.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3496

Differential Revision: https://secure.phabricator.com/D8277
2014-02-18 17:57:45 -08:00
..
DifferentialCommentQuery.php Migrate Differential comments to ApplicationTransactions 2014-02-12 14:34:48 -08:00
DifferentialDiffQuery.php Assign PHIDs to all diffs 2013-11-06 13:59:06 -08:00
DifferentialInlineCommentQuery.php Remove references to legacy comment IDs 2014-02-14 15:56:25 -08:00
DifferentialRepositoryLookup.php Fix an issue with UUID query construction 2013-09-30 03:55:07 -07:00
DifferentialRevisionQuery.php Don't issue a bazillion queries to load Differential object lists 2014-02-18 17:57:45 -08:00
DifferentialRevisionSearchEngine.php Don't issue a bazillion queries to load Differential object lists 2014-02-18 17:57:45 -08:00
DifferentialTransactionQuery.php Migrate Differential comments to ApplicationTransactions 2014-02-12 14:34:48 -08:00