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

[MEX-527] Pairs memory store service #1539

Open
wants to merge 2 commits into
base: MEX-527-memory-store-plugin
Choose a base branch
from

Conversation

mad2sm0key
Copy link
Contributor

@mad2sm0key mad2sm0key commented Dec 11, 2024

Reasoning

  • the pairs and filteredPairs queries are causing significat performance degration because of the complexity of the Pair Model, and the fact that both can return lists of 300+ elements (mainnet)

Proposed Changes

  • add service that implements the memory store interface (can be used seamless by the plugin)
  • add util for creating a model from an array of fields; handles special case of '__typename' being requested
  • add @Expose decorator to all args fields for both the pairs and filteredPairs queries so that they work with the plainToInstance function in class-transformer
  • add newly created service to the memory store factory

How to test

  • N/A

- add service that implements the memory store interface (can be used seamless by the plugin)
- add util for creating a model from an array of fields; handles special case of  '__typename' being requested
- add `@Expose` decorator to all args fields for both the `pairs` and `filteredPairs` queries so that they work with the `plainToInstance` function in class-transformer
@mad2sm0key mad2sm0key marked this pull request as ready for review December 12, 2024 12:56
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.

1 participant