theScore Tech Blog

Things We Learn While Building the Ultimate, Personalized Mobile Sports Experience

All Posts Tagged “elixir”

Repo.transact/2 (The Case Against Ecto.Multi)

After reading Towards Maintainable Elixir by Saša Jurić and hearing about his infamous `Repo.transact` in some of his talks, I decided it was time to explore this for myself.

3 min read

PostgreSQL Queries on JSONB Fields with Ecto

Ecto is a great library for making composable queries, but to query a JSONB field within a schema, it requires falling back to native PostgreSQL functions.

11 min read