Login
From:
katafrakt’s garden
(Uncensored)
subscribe
Ecto, on_replace and deferred checks
https://katafrakt.me/2025/07/03/ecto-on-replace-deferred-check/
links
backlinks
Tagged with:
elixir
database
postgresql
ecto
Today I learned a valuable lesson about how a seemingly simple task can have very rough edge cases, which take hours to solve. It involved Ecto, its associations and on_replace option, and uniqueness checks in the database. Here’s the story.
Roast topics
Find topics
Find it!