# Phoenix performance issues with API

**URL:** <https://forum.elixirforum.com/t/phoenix-performance-issues-with-api/29847>\
**Category:** Questions\
**Tags:** performance, phoenix, phoenix-14\
**Created:** [March 16, 2020, 8:48am UTC](https://forum.elixirforum.com/t/phoenix-performance-issues-with-api/29847 "2020-03-16T08:48:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![lucaong](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lucaong/32/21794_2.png) [@lucaong](https://forum.elixirforum.com/u/lucaong)\
**Post date:** [March 16, 2020, 10:31am UTC](https://forum.elixirforum.com/t/phoenix-performance-issues-with-api/29847/11 "2020-03-16T10:31:30Z")

</div>

Consider that we’re getting in the realm of micro-optimizations here. At the point when you add a call to MongoDB, especially if synchronous, it probably does not make sense to optimize `Map.put` vs. `Map.merge` and rather use whatever is more readable, as the database IO would dominate the time.

---

_[View the full topic](https://forum.elixirforum.com/t/phoenix-performance-issues-with-api/29847)._
