Database Camp (@database_camp) profile picture

A camp for @database technologists and their frens.

New York, NY
Joined April 2016
ORMs still have a role for migrations, schema declaration, and some higher-level patterns. But for writing & typing queries, the wombo-combo of raw SQL + compiler-integrated inference is the shizzle.
type inference from .sql files has been achieved internally ORMs are toast
1
3
90
Database Camp retweeted
Database safety is criminally under discussed. The databases are recursively self improving with ACID transactions. Database makers must be regulated
bad actors use databases => database users are bad actors. put them in jail.
5
1
25
919
This is a very cool trick, if you don't already know it.
When using psql, append `\gset` to a query, and after execution, it stores each column as a psql variable. Use the variables in the same session. The column name (or alias) becomes the variable name. Integer and boolean values are referenced with `:varname`. String values need `:'varname'` (the single quotes make them safe to interpolate into SQL literals).
1
27
Object storage is great for cheap durable archival, but a poor fit as the commit path for low-latency OLTP (high PUT latency + cost for small writes) What’s missing is a public, reusable primitive that adds low-latency durable appends (SSD quorum / 1 RTT) & cheap async archival
There is a lot of hype around putting the WAL on object storage. However, for low-latency systems, e.g. OLTP databases, object storage is a suboptimal primitive for the WAL: (1) PUTs are expensive for small WAL writes [bytes/$]. (2) Object stores are optimized for throughput, not latency, with write latencies often around 10-50 ms. Because every transaction must wait for its WAL record to become durable, every transaction inherits that latency. This points to a missing storage primitive. In our (@maxikuschewski @melhindiCS @viktor_leis) latest accepted research paper at VLDB, we looked at how to close that gap.
1
49
Database Camp retweeted
PostgreSQL 19 wins the AI era 🐘 Not because it’s trendy. Because AI agents need more than a database. They need programmable infra: → Database-per-agent → Agent-safe permissions → MCP + database tools → pgvector + hybrid search → Ephemeral databases → OAuth + workload identity → Graph + SQL queries The AI era doesn’t need another vector database. It needs one programmable database that can power the entire agent stack. PostgreSQL is becoming that database. nitter.gq/alxshp/status/20847096…
PostgreSQL 19 makes INSERTs up to 2× faster 🚀 PG 19 introduces a fast path that can check the referenced unique index directly, avoiding the heavier SPI query path. Result: → Faster foreign-key validation → Less overhead per inserted row → Up to 2× better INSERT performance with foreign keys → Bigger gains during bulk ingestion Your schema stays the same. Your constraints stay intact. The database simply does less work. Same INSERT. Same integrity. Nearly twice the speed. nitter.gq/alxshp/status/20829040…
7
8
2
77
9,262
Don't sleep on this.
12 days later: 10M weekly downloads
8
Database Camp retweeted
We just shipped an official @claudeai connector for Supabase ⚡️ You can now install the Supabase MCP server on Claude web and desktop!
38
63
17
1,098
88,135
Database Camp retweeted
If you are writing complex nested subqueries, you might be better off using CTEs (common table expressions) to improve the readability! CTE enables you to define a query and treat its output as a new table, allowing you to organize your queries in a hierarchical structure.
9
12
1
139
9,901
we’re about to release a feature that I think is a big deal for postgres we created a rust framework to query external databases/warehouses from inside postgres. it’s about to get streaming support :
9
17
200
18,333
"The DrizzleORM discourse looks like developers nitpicking edge cases, but Drizzle is winning adoption because its type inference is good enough that AI coding assistants can generate correct code without human supervision." ctolunchnyc.substack.com/p/c… @DrizzleORM
1
2
14
8,063
Inaugural State of Open Source Database Management Report: try.percona.com/state-of-ope…
1
369
Database Camp retweeted
POV: you're about to find out why senior devs spend weeks/months on database design.
Today I wrote 1000+ lines of code using @prisma . And literally it takes only 3hr to design the database. Now I am exhausted and I think I deserve some goodies
336
1,057
77
25,876
1,681,826
Database Camp retweeted
Supabase allows you to generate embeddings right there within the edge functions. No external dependencies!
10
7
137
12,612
supabase's MCP server is the 3rd most-used in cursor over the last 4 weeks nitter.gq/ericzakariasson/status…
some of the most popular MCP servers in @cursor_ai last 4 weeks
5
22
3,641
Imagine having database devtools in your browser. 🔥 With @tan_stack 🤝@DrizzleORM you can do just that!
15
11
4
169
21,951