Page MenuHomePhabricator

Don't try to rebuild a repository graph cache bucket more than once per request
ClosedPublic

Authored by epriestley on May 11 2014, 3:50 PM.
Tags
None
Referenced Files
F14033436: D9055.id21575.diff
Sat, Nov 9, 5:39 PM
F14033434: D9055.id21501.diff
Sat, Nov 9, 5:39 PM
F14033433: D9055.id.diff
Sat, Nov 9, 5:39 PM
F14033089: D9055.diff
Sat, Nov 9, 4:40 PM
F14022047: D9055.diff
Wed, Nov 6, 3:03 PM
F14020560: D9055.diff
Wed, Nov 6, 12:44 AM
F14009650: D9055.id21575.diff
Wed, Oct 30, 10:06 PM
F13968344: D9055.diff
Wed, Oct 16, 8:19 PM
Subscribers

Details

Summary

Ref T2683. This is a small optimization, but it has low complexity: don't rebuild a bucket more than once in the same request, since it will almost always be the same. Bucket rebuilds are pretty cheap, but this saves a few queries.

Test Plan
  • After discovering (but before parsing) a commit, viewed its browse view. Verified that this patch causes us to perform only one bucket rebuild, and therefore reduces the number of queries we issue.
  • Parsed the commit and viewed the browse view again, got successful rebuild and then fills from cache.

Diff Detail

Repository
rP Phabricator
Branch
gcache10
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 367
Build 367: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Don't try to rebuild a repository graph cache bucket more than once per request.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.May 12 2014, 6:30 PM
epriestley updated this revision to Diff 21575.

Closed by commit rP84fc8f0baf9f (authored by @epriestley).