Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add FindAllTabletsInShard function that operates like FindAllShardsInKeyspace #15556

Open
mattlord opened this issue Mar 22, 2024 · 0 comments

Comments

@mattlord
Copy link
Contributor

Feature Description

It's a common pattern today to:

  1. Get a list of tablet names in a shard
  2. Loop over that list and get each tablet record with that name

We could cut the topo calls in that case e.g. from 4 to 1 (1 each of primary, replica,rdonly) by mirroring what we did in FindAllShardsInKeyspace — attempting to get all of the tablet records in a range scan if we can, and if not fall back to getting the tablet records concurrently.

Use Case(s)

Lessening load on topo servers.

@shlomi-noach shlomi-noach changed the title Feature Request: Add FindAllTabletsInShard function that operates like FindAllShardsInKeyspace Feature Request: Add FindAllTabletsInShard function that operates like FindAllShardsInKeyspace Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants