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

[SERVICES-2578] Caching improvements for tokens queries #1464

Conversation

mad2sm0key
Copy link
Contributor

Reasoning

  • the tokens and filteredTokens queries rely on Promise.all() for getting field data needed for sorting and filtering. Although most data is coming from cache, this still causes degradation in performance due to the large number of tokens

Proposed Changes

  • add bulk getter methods in tokens.compute service
  • refactor tokens filtering and sorting to use bulk methods
  • refactor token dataloaders to use bulk methods

How to test

  • N/A

@claudiulataretu claudiulataretu merged commit 9599fe0 into feat/xexchange-v3 Sep 11, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

3 participants