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

Do preloads which are at the same levels in parallel #69

Open
yansal opened this issue Jun 26, 2019 · 1 comment
Open

Do preloads which are at the same levels in parallel #69

yansal opened this issue Jun 26, 2019 · 1 comment
Labels

Comments

@yansal
Copy link
Contributor

yansal commented Jun 26, 2019

Let's say we have the following models

type Foo struct {
    Bar *Bar
    Bazs []Baz
}
type Bar struct {}
type Baz struct {}

The Bar and Bazs fields can be preloaded in parallel.

@yansal yansal added the ideas label Jun 26, 2019
@novln
Copy link
Collaborator

novln commented Jun 26, 2019

If memory served, @thoas asked to remove this feature because it could stress the database connection: that's why it's sequential now.

You can find the previous implementation at this commit: 1d47b45#diff-954de6d7c840669472378e118a132334L241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants