Blog Posts about Ecto

TIL: Ecto reading after writes

Today I learned that by default, Ecto doesn’t read data back from the database, after writing new or updated data.

The scenario: A trigger in the database, that calculates the new value of a field before insert or update. The person who presented this problem was quite convinced that the trigger wasn’t running in their tests, based on code like the following:

Read More…