Pure Go, with a .musq segment format that stores columns contiguously and a JIT that turns query paths into native code. Filters and aggregates work directly over columns, and it covers joins, window functions, full-text search, vector search and CRDT replication.
- 457 µsFiltered count, 1M rows
- 59.3 msSame, C SQLite
- ~4 µsPoint lookup, Go driver
Trade-offs
- A new
.musqformat instead of SQLite's file format. Compiled code reads columns directly, and existing data has to move throughmusql-convert. - The benchmark fails if a shape stops beating C SQLite or the JIT declines it. Speed is a gate in the build, on 26 read shapes and 4 single-row writes.
Q&A4
C SQLite and Turso are called natively through their C APIs and read every column, and musql through its direct engine API. Each workload is checked on up to 40 bind values, then timed for about 200 ms.
Not always. On one thread DuckDB wins 6 of the 26 shapes, such as TEXT sorting and
IS NULL, and more at its default thread count. engine.WithWorkers(n) lets musql split scans too.Usually: the driver registers as
sqlite and musql, so code written for another SQLite driver mostly needs no change. It needs Go 1.27 or newer and no CGo.Over the user's own network: CRDT replication for independent writers, or leader mode with optional consensus.
Links
Built by
Reviews
Loading reviews
More in SQL
See all 11 →
cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse
dbxliteBrowser SQL workbench on DuckDB for local files, BigQuery and Snowflake
DataZenDesktop database workspace for developers and AI agents
sqlmuxtmux-style terminal database client with Vim keybindings
SlothDBExperimental embedded SQL engine in C++20, from scratch
SQL CrackVS Code extension that draws SQL query flow, dependencies and column lineage
More in Database internals
See all 29 →
PaganelData migration engine that verifies the destination down to the row
FeOxDBEmbedded key-value store in Rust with write-behind durability
SNKVEmbedded key-value store built directly on SQLite's B-tree
RuvioRust key-value server that speaks RESP, with locks and queues as commands
EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
MongrelDBEmbedded Rust database with vector, sparse and text indexes
More in SQLite
See all 22 →
MnemosyneLocal-first agent memory in one SQLite file, with evidence on every record
FusionalySelf-hosted web analytics in one SQLite file
ForemergeCoordination protocol that catches intent conflicts between coding agents
roam-codeLocal code index and checks that coding agents can query
Crap CMSHeadless CMS in one Rust binary, with Lua hooks and a gRPC API
Finance GuruHousehold finance engine where typed code does the math