dwyl / alog

🌲 alog (Append-only Log) is an easy way to start using the Lambda/Kappa architecture in your Elixir/Phoenix Apps while still using PostgreSQL (with Ecto).
GNU General Public License v2.0
15 stars 2 forks source link

Preload #9

Open Danwhy opened 5 years ago

Danwhy commented 5 years ago

Every time we preload associations using the Append Only log, we need to pass a query to the Repo.preload function to avoid loading duplicates or deleted items.

It would be good to have this query pre defined in a function on this module, to save users from having to write it themselves.