Skip to content

api route /v2/_catalog slow #104

@bydga

Description

@bydga

Hi, it seems that for listing all repositories the whole r2 bucket is scanned:

https://github.com/cloudflare/serverless-registry/blob/main/src/registry/r2.ts#L163

This doesn't scale well and in our case (5 repositories with +-100 tags each), the listing already takes +-10 seconds. Looking into the code and r2 api, i can't actually think of some optimization how to simply do that with current approach. Maybe creating extra placeholder objcts in r2 like: repositories/repo1 repositories/repo2 will help scanning just this repositories/* prefix.

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