Hi there,
we're using Dataloader without Absinthe and came across this error:
** (DBConnection.ConnectionError) could not checkout the connection owned by #PID<0.3039.0>. When using the sandbox, connections are shared, so this may imply another process is using a connection. Reason: connection not available and request was dropped from queue after 1562ms.
when running the following code in a test:
Ecto.Multi.new()
|> Ecto.Multi.run(:whatever, fn _, _ ->
Dataloader.new()
|> Dataloader.add_source(:repo, Dataloader.Ecto.new(MyApp.Repo))
|> Dataloader.load(:repo, :roles, user)
|> Dataloader.run()
end)
|> Ev2.Repo.transaction()
Outside of an Ecto.Multi, it works:
Dataloader.new()
|> Dataloader.add_source(:repo, Dataloader.Ecto.new(MyApp.Repo))
|> Dataloader.load(:repo, :roles, user)
|> Dataloader.run()
Is this something that can and should be fixed in Dataloader?
Thanks a lot for this great project! 🙌
Hi there,
we're using Dataloader without Absinthe and came across this error:
when running the following code in a test:
Outside of an
Ecto.Multi, it works:Is this something that can and should be fixed in
Dataloader?Thanks a lot for this great project! 🙌