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

Optimize relations #129

Closed
karatakis opened this issue Apr 2, 2023 · 0 comments · Fixed by #146
Closed

Optimize relations #129

karatakis opened this issue Apr 2, 2023 · 0 comments · Fixed by #146
Milestone

Comments

@karatakis
Copy link
Collaborator

Motivation

In the Derive API we had support for Dataloaders, this solved the O(n+1) problem. But due to the migration to a functional API (#114) this feature is left out. The outcome of this feature is to improve the performance of related queries and optimize it in O(1+1) problem.

Proposed Solutions

Some solutions include:

  • Add Dataloader pattern
  • Add consumer-producer (channel) pattern that groups queries of similar entities in the background
  • Something else on the SeaORM level

Additional Information

This issue requires discussion

@karatakis karatakis added this to the Optimizations milestone Apr 2, 2023
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 a pull request may close this issue.

1 participant