~/talk

Diving into Ecto.Query

Talkat ElixirConf EU 2021 · 2021-09-09..09-10· [databases]
slides:none on file

Ecto.Query is presented as a full SQL-level toolbox with four components: schema changeset query repo where queries are pure structs until repo.all executes them. Examples include using fragments to query jsonb passport fields, ilike for substring email search, dynamic query composition and helpers, and a lateral join for five recent comments per post that joins posts users and limits comments to five ordered by id desc. The claim is that Ecto covers most use cases so raw SQL is rarely necessary.

AI-written summary · about

  1. 0:00Start
  2. 0:29Summary
  3. 0:46whoami?
  4. 2:38Schema
  5. 3:32Changeset
  6. 5:07Modules
  7. 6:01Repo
  8. 7:25Ecto.Query 101
  9. 19:19Ecto. Query
  10. 21:54LIKE query
  11. 23:13JOIN query
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.