Frankensqlite 是 SQLite 的一个 Rust 重实现,支持并发写入。
Frankensqlite a Rust reimplementation of SQLite with concurrent writers

原始链接: https://frankensqlite.com/

比特衰退是无声的、累积的、不可避免的。B树内部节点中的单个比特翻转可能导致整个子树的行损坏。标准的SQLite完全依赖于外部工具(ZFS校验和、定期备份、手动PRAGMA integrity_check)来检测和修复这种损坏。FrankenSQLite将恢复直接构建到存储引擎中。RaptorQ喷泉码在写入时为每个数据页生成修复符号。当读取时检测到损坏,无论是由于比特衰退、磁盘错误还是宇宙射线,失活解码会从幸存的符号中重建原始字节。无需恢复备份。无需人工干预。自动恢复,保证在配置的开销预算内。点击下面的健康页面来模拟损坏,并观看引擎实时重建它们。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Frankensqlite,一个用Rust重实现的SQLite,支持并发写入 (frankensqlite.com) 8 分,作者 rahimnathwani 2小时前 | 隐藏 | 过去 | 收藏 | 1 条评论 帮助 DetroitThrow 8分钟前 [–] 喜欢网站上的“竞赛”演示,但很好奇你是如何构建这个的。感谢markdown文档提供的关于提示、规范等方面的见解。回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文
Bit rot is silent, cumulative, and inevitable. A single flipped bit in a

interior node can corrupt an entire subtree of rows. Standard SQLite relies entirely on external tools (ZFS checksums, periodic backups, manual PRAGMA integrity_check) to detect and repair this damage after the fact.

FrankenSQLite builds recovery directly into the storage engine.

generate

for every data page at write time. When corruption is detected on read, whether from bit rot, disk error, or cosmic ray,

reconstructs the original bytes from the surviving symbols. No backup restore. No operator intervention. Automatic recovery, guaranteed within the configured overhead budget. Click the healthy pages below to simulate corruption and watch the engine reconstruct them in real time.
联系我们 contact @ memedata.com