# Peter Steinberger 复盘 OC 迁移 SQLite 的同步数据库设计失误，并用 Astra 完成 575 个 PR 改为异步

- 来源：Peter Steinberger 🦞 (@steipete)
- 发布时间：2026-09-26 08:51
- AIHOT 分数：52
- AIHOT 链接：https://aihot.news/items/cmuhopjpd0gt8rojn5rikpe1v
- 原文链接：https://x.com/steipete/status/2103648679169257737

## AI 摘要

Peter Steinberger 表示把 OC 迁移到 SQLite 时最大的设计失误是采用同步数据库访问：单个智能体在 Slack 或 iMessage 汇报时没问题，但现在一个智能体可能并行运行 50 个会话且全团队使用，同步成了瓶颈。他设了一个 /goal，用 Astra 迄今提交了 575 个 PR 把一切迁移到异步 worker，并随进展逐步发布改进。他感叹大规模重构如今不再可怕。

## 正文

The biggest design mistake I made when we moved OC to sqlite: using sync db access. When it was just an agent that reports to you on Slack or iMessage this was fine; now that one agent might do 50 sessions in parallel and the whole team works on it, it is limiting.

I have a /goal with Astra that so far landed 575 PRs to move everything to to async workers. We ship these improvements as we make progress. Pretty insane how even huge refactors are no longer scary.
