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

AsyncDataloader: only run Sources async #4757

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Jan 1, 2024

By limiting the source loop to use the async gem, I limit the "Fiber mayhem" that has led to so many bugs. The source loop is tight; sources only wait for other sources, so it never re-enters GraphQL execution. It doesn't have arbitrary dataloader.run depth like GraphQL execution does.

But, it means that I/O in plain resolvers won't be run async.

@rmosolgo rmosolgo added this to the 2.2.4 milestone Jan 2, 2024
@rmosolgo rmosolgo merged commit 528a9c3 into master Jan 3, 2024
12 checks passed
@rmosolgo rmosolgo deleted the async-dataloader-better-batching branch January 3, 2024 17:37
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.

None yet

1 participant