Skip to content
Hacker News front page

Databases Were Not Designed for This

Arpit Bhayani argues agentic AI breaks four database assumptions: deterministic queries, human-reviewed writes, brief connections, and human-monitored failures. He proposes Postgres role timeouts of 5s and 10s, soft deletes, append-only logs, and idempotency keys. The key shift is treating agent_worker as an untrusted caller, not sizing pools like human-written apps.

Why it matters: Arpit Bhayani argues AI agents break four old database rules: fixed queries, human-reviewed writes, short-lived connections and someone watching for errors, and gives PostgreSQL timeout settings and soft-delete practices.

Read the original ↗Export Markdown