cockroachdb / cockroachdb/cockroach

catalog: add caching for `ScanDescriptorsInSpans` function

Open
#134,666 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In #133190, a function is added to the CatalogReader interface which allows for scanning descriptors in a span of the keyspace. This is implemented in the cachedCatalogReader as a passthrough to the underlying catalogReader.

Ideally, this should be caching descriptors fetched by a span accordingly, figure out how this should behave, what the benefit is (in a small and large cluster) and how to do it.

Epic: CRDB-43151

Jira issue: CRDB-44193

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.