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
F14376995: D8781.diff
Sat, Dec 21, 12:36 AM
Unknown Object (File)
Thu, Dec 19, 7:44 AM
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)
Nov 19 2024, 11:15 PM
Unknown Object (File)
Nov 15 2024, 8:54 PM
Unknown Object (File)
Nov 13 2024, 1:13 PM
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
Lint
Lint Skipped
Unit
Tests Skipped