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

Stop consuming all the pagination in idmapper #115

Open
brmzkw opened this issue Aug 2, 2023 · 0 comments
Open

Stop consuming all the pagination in idmapper #115

brmzkw opened this issue Aug 2, 2023 · 0 comments

Comments

@brmzkw
Copy link
Contributor

brmzkw commented Aug 2, 2023

To resolve a name identifier (koyeb app get appname) or a short-uuid identifier (koyeb app get <short uuid>) to a full-uuid, the idmapper consumes performs a list query, consumes all the pagination and store the items in a tree.

This behavior doesn't scale when there are many resources.

Instead, we need to:

  • update our APIs, to allow filtering items by name or short uuid
  • update the idmapper to use these new filters instead of consuming all the pagination, and doing the filter locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant