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)
Thu, Jun 23, 7:40 AM
Unknown Object (File)
Wed, Jun 8, 6:38 PM
Unknown Object (File)
Jun 1 2022, 11:39 PM
Unknown Object (File)
Jun 1 2022, 2:02 PM
Unknown Object (File)
May 23 2022, 8:48 PM
Unknown Object (File)
Apr 11 2017, 1:09 AM
Unknown Object (File)
Feb 16 2017, 6:32 PM
Unknown Object (File)
Jan 25 2017, 10:50 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
Lint
Lint Skipped
Unit
Tests Skipped