PostgreSQL and SQL
[!NOTE]
Overview
Attribute Details Used 2022 to present Roles Mesa Cloud Projects Commonts, Found Teams, Autonomic Alpha Foundry, Two Truths & the Lie Around it Drizzle ORM, pgvector, Supabase (row level security, Edge Functions), Neon, PostgreSQL 16
Where Andrea used it
- Mesa Cloud (2022 to 2023). ETL microservices on PostgreSQL processing millions of student records; long-running monolithic SQL workflows broken into units for asynchronous workers. See data pipelines.
- Commonts. PostgreSQL 16 with Drizzle ORM behind a TypeScript API and worker on Cloud Run.
- Found Teams. PostgreSQL with pgvector on Neon as the single permanent data layer; everything that happens is recorded as an append-only event, which drives activity feeds and notifications.
- Autonomic Alpha Foundry. PostgreSQL 16 holds the research state across 17 application-owned tables, including a model registry with staging, deployed and archived statuses.
- Two Truths & the Lie. Supabase PostgreSQL with row level security; a PostgreSQL function runs a pgvector cosine-similarity search over live and pending statements to catch near-duplicates.
Notable decisions
- Similarity in the database (Two Truths). The duplicate check runs where the statements live, against both live and pending rows, rather than in application code.
- Servers only where they must be. The mobile apps keep data on the device in SQLite instead; see local-first mobile systems.