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)
Mon, Dec 30, 4:26 PM
Unknown Object (File)
Mon, Dec 30, 3:38 PM
Unknown Object (File)
Sun, Dec 22, 5:06 AM
Unknown Object (File)
Dec 11 2024, 2:29 AM
Unknown Object (File)
Dec 10 2024, 3:23 PM
Unknown Object (File)
Dec 8 2024, 1:25 PM
Unknown Object (File)
Dec 7 2024, 1:44 AM
Unknown Object (File)
Nov 21 2024, 2:10 AM
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!!~