# problem asynchronizing ecto calls

**URL:** <https://forum.elixirforum.com/t/problem-asynchronizing-ecto-calls/19796>\
**Category:** Questions\
**Tags:** ecto, asynchronous\
**Created:** [January 30, 2019, 4:50pm UTC](https://forum.elixirforum.com/t/problem-asynchronizing-ecto-calls/19796 "2019-01-30T16:50:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![TELunus](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/telunus/32/9987_2.png) [@TELunus](https://forum.elixirforum.com/u/TELunus)\
**Post date:** [January 31, 2019, 10:06pm UTC](https://forum.elixirforum.com/t/problem-asynchronizing-ecto-calls/19796/5 "2019-01-31T22:06:54Z")

</div>

It looks like the project is already doing that. The test file starts with

```elixir
defmodule Project.Module do
    use Project.ModelCase

```

And in `model_case.ex` we’ve got

```elixir
  setup tags do
    :ok = Ecto.Adapters.SQL.Sandbox.checkout(Project.Repo)

    unless tags[:async] do
      Ecto.Adapters.SQL.Sandbox.mode(Project.Repo, {:shared, self()})
    end

    :ok
  end

```

So since `:async` isn’t included in the `use` line I believe that means we’re using shared mode, so any process should be able to connect to the DB connection.

---

_[View the full topic](https://forum.elixirforum.com/t/problem-asynchronizing-ecto-calls/19796)._
