# \#ecto

**URL:** https://forum.devtalk.com/tag/ecto/1522.md

[Latest](https://forum.devtalk.com/latest.md) · [Categories](https://forum.devtalk.com/categories.md) · [Tags](https://forum.devtalk.com/tags.md)

---

## [Thinking Elixir 307 - Trust Nothing, Sort Everything](https://forum.devtalk.com/t/thinking-elixir-307-trust-nothing-sort-everything/247138)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [9 June 2026 12:38 UTC](https://forum.devtalk.com/t/thinking-elixir-307-trust-nothing-sort-everything/247138 "2026-06-09T12:38:17Z")

</div>

Episode 307 of Thinking Elixir. Mark shares a bittersweet housekeeping update. The Thinking Elixir Podcast is winding down, with the final episode airing June 23rd, 2026, closing the book on over six years of weekly show…

---

## [Using belongs\_to Associations with Phoenix Forms - ElixirCasts](https://forum.devtalk.com/t/using-belongs-to-associations-with-phoenix-forms-elixircasts/213248)

<div class="topic-metadata">

**Author:** [@ElixirCasts](https://forum.devtalk.com/u/ElixirCasts)\
**Replies:** 0\
**Last updated:** [2 September 2025 14:44 UTC](https://forum.devtalk.com/t/using-belongs-to-associations-with-phoenix-forms-elixircasts/213248 "2025-09-02T14:44:17Z")

</div>

Episode 200 is live :tada: In it we’ll learn how to set up has\_many and belongs\_to relationships in Phoenix and then refactor our form to correctly handle the association.

---

## [Northwind Elixir Traders (PragProg)](https://forum.devtalk.com/t/northwind-elixir-traders-pragprog/199283)

<div class="topic-metadata">

**Author:** [@PragmaticBookshelf](https://forum.devtalk.com/u/PragmaticBookshelf)\
**Replies:** 1\
**Last updated:** [20 May 2025 00:49 UTC](https://forum.devtalk.com/t/northwind-elixir-traders-pragprog/199283 "2025-05-20T00:49:37Z")

</div>

Immersive, project-based adventure that reimagines the classic Northwind database. Isaak Tsalicoglou @waseigo Built for the curious, this isn’t your average programming book—it’s nearly 500 pages of hands-on mentor…

---

## [Thinking Elixir 216 - Ecto Soft Deletions Masterclass](https://forum.devtalk.com/t/thinking-elixir-216-ecto-soft-deletions-masterclass/166856)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [20 August 2024 12:22 UTC](https://forum.devtalk.com/t/thinking-elixir-216-ecto-soft-deletions-masterclass/166856 "2024-08-20T12:22:20Z")

</div>

Episode 216 of Thinking Elixir. News includes a new video from José Valim demonstrating Livebook deployments, Chris McCord’s “Pawsitively” project integrating content moderation with Livebook, the release of Zigler 0.13.…

---

## [How to report Postgres custom errors in Ecto Changeset](https://forum.devtalk.com/t/how-to-report-postgres-custom-errors-in-ecto-changeset/161343)

<div class="topic-metadata">

**Author:** [@quetz](https://forum.devtalk.com/u/quetz)\
**Replies:** 0\
**Last updated:** [8 July 2024 14:21 UTC](https://forum.devtalk.com/t/how-to-report-postgres-custom-errors-in-ecto-changeset/161343 "2024-07-08T14:21:00Z")

</div>

Capture a Postgres (or any other RDBMS) custom error in the Ecto.Changeset without raising an exception. This enables you to handle all the errors in one place without braking your aesthetic Elixir functional code with …

---

## [Thinking Elixir 178 - Safe Ecto Migrations and AI Updates](https://forum.devtalk.com/t/thinking-elixir-178-safe-ecto-migrations-and-ai-updates/133157)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [21 November 2023 13:22 UTC](https://forum.devtalk.com/t/thinking-elixir-178-safe-ecto-migrations-and-ai-updates/133157 "2023-11-21T13:22:26Z")

</div>

Episode 178 of Thinking Elixir. In this episode, we revisit the Safe Ecto Migrations guide and get an update on improvements. We also discuss the role and importance of OpenSource AI models. We cover updates in the Elixi…

---

## [Thinking Elixir 166 - Filtering, ordering and pagination via Flop](https://forum.devtalk.com/t/thinking-elixir-166-filtering-ordering-and-pagination-via-flop/122334)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [29 August 2023 12:36 UTC](https://forum.devtalk.com/t/thinking-elixir-166-filtering-ordering-and-pagination-via-flop/122334 "2023-08-29T12:36:53Z")

</div>

Episode 166 of Thinking Elixir. Most of us have created our own filtering, sorting and pagination code before in one project after the other. Mathias Polligkeit got tired of doing that too and created the flop library to…

---

## [Sorting and Deleting many-to-many assocs with Ecto and LiveView](https://forum.devtalk.com/t/sorting-and-deleting-many-to-many-assocs-with-ecto-and-liveview/118610)

<div class="topic-metadata">

**Author:** [@bemesa21](https://forum.devtalk.com/u/bemesa21)\
**Replies:** 0\
**Last updated:** [31 July 2023 20:54 UTC](https://forum.devtalk.com/t/sorting-and-deleting-many-to-many-assocs-with-ecto-and-liveview/118610 "2023-07-31T20:54:22Z")

</div>

Sorting and deleting many-to-many associations made easy with Ecto’s :sort\_param and :delete\_param options from cast\_assoc, powered by LiveView.

---

## [Thinking Elixir 159 - Langchain with Elixir and Safe Ecto Migrations](https://forum.devtalk.com/t/thinking-elixir-159-langchain-with-elixir-and-safe-ecto-migrations/116041)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [11 July 2023 13:20 UTC](https://forum.devtalk.com/t/thinking-elixir-159-langchain-with-elixir-and-safe-ecto-migrations/116041 "2023-07-11T13:20:03Z")

</div>

Episode 159 of Thinking Elixir. Mark and David share what’s caught their interests and focus. Langchain is a popular framework in JS and Python communities for building services that knit together different services enab…

---

## [Thinking Elixir News 147](https://forum.devtalk.com/t/thinking-elixir-news-147/105450)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [18 April 2023 12:40 UTC](https://forum.devtalk.com/t/thinking-elixir-news-147/105450 "2023-04-18T12:40:04Z")

</div>

Day 1 and 2 of Livebook’s first launch week announcements, a new JsonSchema compiler named Exonerate, Ecto 3.10.0 brings changeset improvements for LiveView, the Image library can now skew and unskew images using Nx, Kno…

---

## [How to get the top X results of a given category using Ecto?](https://forum.devtalk.com/t/how-to-get-the-top-x-results-of-a-given-category-using-ecto/95919)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 3\
**Last updated:** [13 February 2023 11:04 UTC](https://forum.devtalk.com/t/how-to-get-the-top-x-results-of-a-given-category-using-ecto/95919 "2023-02-13T11:04:13Z")

</div>

Background I have to queries that return a colossal amount of data on their own. I cannot use Repo.all as doing so would materialize these into memory, which would then quickly run out. So I am trying to push as much as…

---

## [Tag All the Things!](https://forum.devtalk.com/t/tag-all-the-things/94208)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [30 January 2023 19:35 UTC](https://forum.devtalk.com/t/tag-all-the-things/94208 "2023-01-30T19:35:03Z")

</div>

There are several ways to add a “tagging” feature to an app. Sometimes it requires multiple tables and joins to solve the problem. Sometimes a simpler approach is both better and easier. This article explores a simple ap…

---

## [ThinkingElixir 127 - Ecto gets Lively in Livebook](https://forum.devtalk.com/t/thinkingelixir-127-ecto-gets-lively-in-livebook/84889)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [29 November 2022 13:48 UTC](https://forum.devtalk.com/t/thinkingelixir-127-ecto-gets-lively-in-livebook/84889 "2022-11-29T13:48:04Z")

</div>

Episode 127 of Thinking Elixir. We talked with Spawnfest competitors Filipe Cabaço & Joel Carlbark about their entry “Lively”. Lively was all about doing cool things with Ecto in Livebook. The project, later renamed to K…

---

## [ThinkingElixir 123 - Ash Framework Models Resources](https://forum.devtalk.com/t/thinkingelixir-123-ash-framework-models-resources/80815)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 3\
**Last updated:** [9 November 2022 01:01 UTC](https://forum.devtalk.com/t/thinkingelixir-123-ash-framework-models-resources/80815 "2022-11-09T01:01:37Z")

</div>

Episode 123 of Thinking Elixir. Creator of the Ash Framework, Zach Daniel, shares how he feels Ecto is such a good tool, that people haven’t built a modeling layer above it and end up using Ecto directly. Ash models a re…

---

## [ThinkingElixir 118 - Making Users Anonymous Upon Request](https://forum.devtalk.com/t/thinkingelixir-118-making-users-anonymous-upon-request/75620)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [27 September 2022 12:40 UTC](https://forum.devtalk.com/t/thinkingelixir-118-making-users-anonymous-upon-request/75620 "2022-09-27T12:40:04Z")

</div>

Episode 118 of Thinking Elixir. Honoring a user’s “right to be forgotten” is not only respectful, but it may be a legal requirement. Clément Quaresma joins us to share how their ecto\_anon library helps us make a user ano…

---

## [Speed up Multitenant Migrations with Database Schema Snapshots](https://forum.devtalk.com/t/speed-up-multitenant-migrations-with-database-schema-snapshots/71898)

<div class="topic-metadata">

**Author:** [@ragamuf](https://forum.devtalk.com/u/ragamuf)\
**Replies:** 0\
**Last updated:** [3 September 2022 00:40 UTC](https://forum.devtalk.com/t/speed-up-multitenant-migrations-with-database-schema-snapshots/71898 "2022-09-03T00:40:03Z")

</div>

Who doesn’t want to go faster? Migrations in Elixir with Ecto are already quick. Still, we can go faster, especially when we need to onboard customers repeatedly in multi-tenant architectures.

---

## [Assistance with Schema Mix](https://forum.devtalk.com/t/assistance-with-schema-mix/48215)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 7\
**Last updated:** [5 April 2022 10:19 UTC](https://forum.devtalk.com/t/assistance-with-schema-mix/48215 "2022-04-05T10:19:52Z")

</div>

I am confused about the Schema setup, I am setting up a new application and I want to seed files in it as well. I tried to mix to create the schema mix phx.gen.html Delish.food delish\_foods title:string ingredients:stri…

---

## [Seed Data with Elixir](https://forum.devtalk.com/t/seed-data-with-elixir/48412)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 6\
**Last updated:** [4 April 2022 16:53 UTC](https://forum.devtalk.com/t/seed-data-with-elixir/48412 "2022-04-04T16:53:18Z")

</div>

Hello, I am working on a new application with Elixir, Dish\_out. I want to see Data I follow this tutorial with Elixir Casts. However, I am not sure if what I am doing is correct because my seed file does not work. My S…

---

## [SQL CASE with Ecto](https://forum.devtalk.com/t/sql-case-with-ecto/44890)

<div class="topic-metadata">

**Author:** [@RudManusachi](https://forum.devtalk.com/u/RudManusachi)\
**Replies:** 1\
**Last updated:** [14 March 2022 16:20 UTC](https://forum.devtalk.com/t/sql-case-with-ecto/44890 "2022-03-14T16:20:23Z")

</div>

Hi there! Recently I was playing around with extracting and updating data in the DB and for fun challenged myself to try to implement a nice-looking function/macro to do SQL CASE with Ecto. Wanted to share with you t…

---

## [Ecto issue, not sure how to do this?](https://forum.devtalk.com/t/ecto-issue-not-sure-how-to-do-this/44085)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 3\
**Last updated:** [10 March 2022 23:54 UTC](https://forum.devtalk.com/t/ecto-issue-not-sure-how-to-do-this/44085 "2022-03-10T23:54:31Z")

</div>

Hello, I am. very new to Elixir lang I have only been doing it for about 2 weeks. I recently started following this tutorial todo list, and I am running into errors, everything was fine until timestamp 3:15 where “mix e…
