Page MenuHomePhabricator

Don't issue a bazillion queries to load Differential object lists
ClosedPublic

Authored by epriestley on Feb 19 2014, 1:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 2:10 AM
Unknown Object (File)
Tue, Nov 12, 3:25 AM
Unknown Object (File)
Sun, Nov 10, 5:31 AM
Unknown Object (File)
Tue, Nov 5, 11:47 PM
Unknown Object (File)
Sat, Nov 2, 7:56 AM
Unknown Object (File)
Oct 20 2024, 2:05 PM
Unknown Object (File)
Oct 16 2024, 8:01 AM
Unknown Object (File)
Oct 15 2024, 12:50 PM
Subscribers
Tokens
"Mountain of Wealth" token, awarded by chad."Mountain of Wealth" token, awarded by btrahan.

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP50ed42761ce9: 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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

awesometown

divided by

9203809238

equals

awesometown

well okay 9203809238 is more like 9 or something but that's still more than 0!!~