Skip to content
Mohammad Kazim
Colour theme

Hire me
← All case studies

Personal · Built

Multi-tenant lead tracking platform

Express and Supabase with Postgres Row-Level Security, API-key tenancy and Sentry on both ends.

27database migrations

Illustrative screen. Designed for this portfolio with sample content.

Illustrative screen with sample content

Illustrative screen for Multi-tenant lead tracking platform

What I did

Track leads for several tenants without one tenant ever seeing another's data.

  1. Row-Level Security in Postgres.
  2. API-key tenancy with caching and an atomic identity-resolution function.
  3. A covering index and a materialised CTE replaced six scans with one in the summary query.
  4. Daily rollups and a retention job that only prunes days already rolled up.

What changed

  • Working multi-tenant platform with error tracking on client and server.
Next case studyAsk your data in plain English