# Issue with Ecto query preloading

**URL:** <https://forum.elixirforum.com/t/issue-with-ecto-query-preloading/8882>\
**Category:** Questions\
**Tags:** ecto, book-programming-phoenix, phoenix\
**Created:** [September 25, 2017, 1:48pm UTC](https://forum.elixirforum.com/t/issue-with-ecto-query-preloading/8882 "2017-09-25T13:48:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![LostKobrakai](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lostkobrakai/32/3072_2.png) [@LostKobrakai](https://forum.elixirforum.com/u/LostKobrakai)\
**Post date:** [November 1, 2018, 11:04pm UTC](https://forum.elixirforum.com/t/issue-with-ecto-query-preloading/8882/7 "2018-11-01T23:04:18Z")

</div>

Maybe this can shed some light:

> [@Testing my Ecto Repo](https://forum.elixirforum.com/t/testing-my-ecto-repo/14820/12):
>
> On that note: Comparing ecto schema structs for equality (==/2) is hardly ever somethings you actually want to test for. E.g. the data coming out of the db will have an id, the input might not. The data coming out of the db have inserted-/updated\_at timestamps set, the input might not. There might be defaults for db columns that your runtime doesn’t know of. So total equality is not really to be expected. Tests are rather concerned with: “are those the same entities” a.k.a. do they hold the …

---

_[View the full topic](https://forum.elixirforum.com/t/issue-with-ecto-query-preloading/8882)._
