sqlite3_rsync: Database Remote-Copy Tool For SQLite

Simon Willison · 2026年11月26日

AI 摘要 AI 生成,可能有误

sqlite3_rsync 是 SQLite 的一款工具,它可以通过 SSH 连接将数据库快照复制到另一台机器上,而无需事先创建完整的本地副本,这与备份 API 或 VACUUM INTO 不同——后者需要有足够的磁盘空间来存放一份完整的副本。它还能同步已有的远程副本而无需重新传输整个数据库,其工作方式类似于 rsync:通过交换各页面的加密哈希值,使得只有存在差异的页面内容才会被发送。即使源数据库与副本之间存在较大差异,用于哈希交换的额外带宽也非常少——至多只有几个百分点。

sqlite3_rsync: Database Remote-Copy Tool For SQLite

This additional SQLite tool has been around for a while now - it was added as "experimental" in SQLite 3.47.0 in October 2024 and enhanced in SQLite 3.50.0 in May 2025. It was only today that I understood one of its most attractive characteristics.

Normally, if you want to grab a snapshot copy of a SQLite database, you need to use either the backup API or VACUUM INTO. In both cases you need enough disk space to create a duplicate copy of your database, so if you're on a small instance and you already use more than half of the available disk you are plain out of luck.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Simon Willison

Large CSV imports in Datasette (Datasette Advent Day 1)

AI 摘要The author is publishing daily videos through December demonstrating new Datasette features in an advent calendar format. The first video covers large CSV and TSV imports newly added in Datasette 1.0a46, where files of any size are streamed, parsed in the browser, and sent to the insert API in batches. The demonstration includes importing 26,000 rows of iNaturalist data in seconds, plus faceting for analysis and a new UI for selecting and reordering table columns.

datasette 1.0a46

AI 摘要The datasette 1.0a46 alpha release introduces a major new feature for large CSV imports, which is demonstrated in the first video of a new advent calendar series running up to Christmas. Additionally, row pages now list incoming many-to-one foreign key rows, formatted similarly to the new many-to-many feature.

ty 1.0

AI 摘要ty, Astral's fast Python type checker, has reached version 1.0 and is now recommended for production use. It is the default type checker at OpenAI, where migrating to it yielded a median 24x speedup and a 73% reduction in peak memory usage across millions of lines of critical Python. It also offers built-in Django support when the django-types package is installed.

AT Protocol: The Spaces Public Beta is Now Live

AI 摘要AT Protocol, the open protocol behind Bluesky, has launched the public beta of Spaces, a new feature introducing private and selectively shared data to a network that was previously entirely public. Spaces act as groups whose members gain permission to read private data hosted on the owner's Personal Data Server (PDS), allowing sharing with any group size from a personal journal to a community of millions. Rather than an end-user feature, Spaces is designed as a platform for building new applications on the open social internet.

Quoting Josh Dunsterville

AI 摘要The article quotes Josh Dunsterville responding to the announcement that Cursor has been rebranded as Grok Build, a product from SpaceXSI (previously SpaceXAI, formerly xAI, aka XAI Corp). It highlights the tangled chain of corporate renamings, noting that XAI Corp—owner of X (previously Twitter)—is itself owned by SpaceX. The piece is tagged with grok, ai, and cursor.