# Problem with testing bulk inserts with Task.async\_stream

**URL:** <https://forum.elixirforum.com/t/problem-with-testing-bulk-inserts-with-task-async-stream/21693>\
**Category:** Questions\
**Tags:** ecto, testing, asynchronous\
**Created:** [April 17, 2019, 3:33am UTC](https://forum.elixirforum.com/t/problem-with-testing-bulk-inserts-with-task-async-stream/21693 "2019-04-17T03:33:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![idi527](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/i/85e7bf/32.png) [@idi527](https://forum.elixirforum.com/u/idi527)\
**Post date:** [April 17, 2019, 6:18am UTC](https://forum.elixirforum.com/t/problem-with-testing-bulk-inserts-with-task-async-stream/21693/4 "2019-04-17T06:18:34Z")

</div>

Ah, it wasn’t obvious from your first snippet that you also read from the database, in that case, yes, the concurrent version can be more efficient.

---

_[View the full topic](https://forum.elixirforum.com/t/problem-with-testing-bulk-inserts-with-task-async-stream/21693)._
