Page MenuHomePhabricator

Make discovery slightly cheaper in the common case
ClosedPublic

Authored by epriestley on Apr 15 2014, 11:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 9:46 PM
Unknown Object (File)
Fri, Nov 29, 11:49 AM
Unknown Object (File)
Sat, Nov 23, 7:41 PM
Unknown Object (File)
Tue, Nov 19, 11:15 PM
Unknown Object (File)
Nov 15 2024, 8:54 PM
Unknown Object (File)
Nov 13 2024, 1:13 PM
Unknown Object (File)
Nov 12 2024, 3:51 AM
Unknown Object (File)
Nov 8 2024, 6:01 AM
Subscribers

Details

Summary

Ref T4605. Before discovering branches, try to prefill the cache in bulk. For repositories with large numbers of branches, this allows us to issue dramatically fewer queries.

(Before D8780, this cache was usually held across discovery events, so being able to fill it cheaply was not as relevant.)

Test Plan

Ran discovery on Git, Mercurial and SVN repositories. Observed fewer queries for Git/Mercurial.

Diff Detail

Repository
rP Phabricator
Branch
pull2
Lint
Lint Passed
Unit
Tests Passed