How I solved an Ecto preload dilemma I had in Elixir(gatlin.io)6 points·by aegatlin·vor 5 Jahren·1 commentsgatlin.ioHow I solved an Ecto preload dilemma I had in Elixirhttps://www.gatlin.io/blog/post/on-an-ecto-preload-dilemma1 commentsPost comment[–]al2o3cr·vor 5 Jahrenreply There are a few issues to be aware of when using Repo.preload. First, it's hitting the database to fetch the association data. FWIW, using Query.preload with will produce the same two queries when used with plain atoms like "Repo.all from p in Post, preload: [:comments]"
FWIW, using Query.preload with will produce the same two queries when used with plain atoms like "Repo.all from p in Post, preload: [:comments]"