~/talk

Exploiting Relationship Graphs to Isolate Tenant Data

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [databases]
slides:none on file

Shows a concrete exporter that reads PostgreSQL metadata (information_schema / pg_catalog), builds a directed graph of tables and foreign keys, traverses to produce a connected subgraph for one tenant, and then toposorts that graph to emit constraint-safe COPY/INSERT statements. Example Node.js tool Arachnne handles type metadata from the pg driver, demonstrates extracting one tenant from a three-tenant demo, warns about lookup tables/enums and cycles, and is available on GitHub as a reference implementation.

AI-written summary · about

  1. 0:00Start
  2. 1:33We've got too many databases
  3. 2:44Multitenant Database Architectures
  4. 10:09Digraphs
  5. 12:25The Information Schema
  6. 16:19Multiple vertices can exist for the same table
  7. 19:18Lookup Tables Ruin Everything
~/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.