~/talk

Easier Queries for Multi-Tenant SaaS Apps

Talkat Azure Cosmos DB: Liftoff 2022 · on Tuesday, 2022-10-18· [databases]
links:none on file
slides:none on file

Helper libraries for Azure Cosmos DB for PostgreSQL automatically scope ORM queries to a tenant and change SQL so distributed plans hit a single shard instead of all 32 by adding the tenant filter, turning 32 tasks into one task (31 negatives, 1 hit). Libraries exist for activerecord-multi-tenant and Django multi-tenant, use composite primary keys to match per-tenant uniqueness, and are on the Citus Data GitHub — proven to be both safer (no tenant leakage) and much faster.

AI-written summary · about

  1. 0:00Introduction to ORMs
  2. 1:09Multi-tenant applications
  3. 2:25Challenges in distributed DBs
  4. 3:59Schema design and setup
  5. 5:58Query generation analysis
  6. 8:27Safety and performance issues
  7. 10:36Optimizing with library tools
~/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.