Skip to content

Performance: Preload repository and revision metadata where possible

Created by: umpox

Description

Goal: Render repo related pages + code views faster

Reason:

  • We fetch RepositoryRedirect and ResolveRevision queries whenever we load a new repository from search results.
    • Often this means clicking a second search result from the list is faster (as we already have the metadata)
  • Typically there won't be as many different repositories in results as there will be files. It might be a good idea after a search to prefetch the first 10(?) repositories and their metadata so we already have this information when a result is clicked.

Note: