-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 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.
- Loading branch information
1 parent
898b6b1
commit 3638308
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters