~/talk

Beyond the ORM: from Postgres to OpenSearch with Andrew Mshar

Talkat DjangoCon US 2025 · on Tuesday, 2025-09-09· at 15:40· Sauganash Ballroom· [django, databases]
slides:none on file

Iris moves address data out of Postgres into Cosmos on OpenSearch with Greenhouse as the API layer and equipment followup in progress, cutting a worst case SQL query from about two minutes to a few hundred milliseconds and making large imports far faster, all on AWS OpenSearch using opensearch-py and Cabana dashboards. Development adopts Pydantic models replace the ORM for validation and typing, trading Django admin for locations moved fully to OpenSearch, gaining query dropped from ~2 minutes to ~200ms, and using opensearch-py and Cabana dashboards for iteration.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Business context
  3. 6:26Iris app challenges
  4. 11:45Moving data to OpenSearch
  5. 13:10Why OpenSearch over PostgreSQL
  6. 15:42OpenSearch setup
  7. 17:05OpenSearch data operations
  8. 21:42Performance issues with queries
  9. 23:31OpenSearch query structure
  10. 25:17Pre-migration results
  11. 27:03Trade-offs beyond ORM
  12. 31:18Summary and Q&A
~/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.