This thread has some thoughts about implementing the `has_one_attached` and `has_many_attached` using built in Ecto associations.
Convince me this `has_many` usage is a bad idea?
#ElixirLang
This thread has some thoughts about implementing the `has_one_attached` and `has_many_attached` using built in Ecto associations.
github.com/jakeprem/ect...
github.com/jakeprem/ect...
Super cool!
Super cool!
Do you have the cluster + your router on a UPS already?
Do you have the cluster + your router on a UPS already?
1. Maintains database integrity with foreign keys
2. `Repo.preload(posts, :photos)` includes a query of the ledger table as well as the attachments table
3. `:through` associations are read only
1. Maintains database integrity with foreign keys
2. `Repo.preload(posts, :photos)` includes a query of the ledger table as well as the attachments table
3. `:through` associations are read only
1. Both fields still use a foreign key reference in the database
2. `Repo.preload(posts, :photos)` queries the attachments table directly rather than traversing the ledger table.
3. `Ecto.build_assoc/3` and related seem to work.
1. Both fields still use a foreign key reference in the database
2. `Repo.preload(posts, :photos)` queries the attachments table directly rather than traversing the ledger table.
3. `Ecto.build_assoc/3` and related seem to work.
Biggest advantage though is the background color is more aesthetically pleasing than ChatGPT 😁
Biggest advantage though is the background color is more aesthetically pleasing than ChatGPT 😁
I personally use Bun where I can but more developers will probably already have NodeJS installed.
I personally use Bun where I can but more developers will probably already have NodeJS installed.