This post discusses how to list matches for a user using Ecto and how to load nested information in Phoenix LiveView without running multiple queries. It also explains the N+1 problem and why it is bad.

9m read time From dev.to
Post cover image
Table of contents
Reviewing some Ecto conceptsBack to the tablesHow NOT to load nested information on Phoenix LiveViewHow to do load nested information on Phoenix LiveView EctoLearning a little bit more about Phoenix LiveView StreamsFixing old testsAdding tests for the UI changesSummary

Sort: