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

Fix/Ecto high number of batches #126

Conversation

jueberschlag
Copy link
Contributor

Fix Dataloader.Ecto.run_batches/1 function for high number of batches

As stated by the Elixir doc, Maps’ keys do not follow any ordering. In practice it is especially true starting at 32 elements.
Therefore the batches' results were not in the same order as the batches' keys which resulted in an error when fetching a batch result.

As stated by the Elixir doc, Maps’ keys do not follow any ordering. In practice is is especially true starting at 32 elements.
Therefore the batches' results were not in the same order as the batches' keys which resulted in an error when fetching a batch result.
@benwilson512 benwilson512 merged commit cc497d9 into absinthe-graphql:master Jul 7, 2021
@benwilson512
Copy link
Contributor

Great catch!

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.

2 participants