Skip to content

Sync performance: skip /tags/list for specific tag lists #2474

Description

@parmstro

Problem: Syncing container repositories with specific tag references (sha256 digests)
from deep repositories (50,000+ tags) requires paginating through all tags, taking 3-8 minutes.

Solution: When include_tags contains only non-wildcard references and excludes won't match,
bypass /tags/list entirely and fetch manifests directly. Discover cosign companions via HEAD probing.

Impact: Reduces sync time from 3-8 minutes to ~20 seconds for the reported use case
(OCP repository with 50K+ tags, syncing 189 specific digests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions