Skip to main content
Multilingual TursoDB, MVCC & AI Agent database guides Read Engine Guide →

Knowledge Base

Frequently Asked Questions

Clear answers about TursoDB vs. SQLite and libSQL, Rust rewrite compatibility, MVCC writes, vector search, self-hosting, and this community.

What is the difference between SQLite, libSQL, and TursoDB (Rust)? +

SQLite is the classic C-based embedded database library. libSQL is Turso’s open-source fork of SQLite (written in C plus the Rust sqld server) adding HTTP access, embedded replicas, and native vectors. TursoDB (formerly codenamed Limbo) is a clean-room rewrite of SQLite in Rust introducing native async I/O (io_uring), MVCC concurrent writes, and Turso Sync.

Is TursoDB file-compatible with standard SQLite databases? +

Yes. Maintaining SQLite SQL dialect and on-disk file format compatibility is a core design goal so existing SQLite tools, migrations, and datasets can transition smoothly.

How does MVCC concurrent writing work in TursoDB? +

Traditional SQLite allows only one active writer per database file at a time. TursoDB introduces Multi-Version Concurrency Control (`BEGIN CONCURRENT`), validating page-level conflicts at commit time so non-overlapping write transactions succeed in parallel.

Why use a database-per-tenant or database-per-agent architecture? +

Because SQLite databases are lightweight files rather than heavyweight server processes, creating thousands or millions of isolated databases costs almost nothing when idle. Each user or AI agent gets strict data isolation, independent backups, and instant branching without risking cross-tenant `WHERE tenant_id = ?` bugs.

Can I self-host libSQL or TursoDB on my own server? +

Yes. Both `tursodatabase/libsql` (`sqld`) and `tursodatabase/turso` are open source under permissive licenses (MIT). You can embed the Rust engine directly in your binary or run `sqld` via Docker on your own infrastructure, while Turso Cloud provides managed global sync, backups, and enterprise BYOC.

How does Turso Sync differ from classic Embedded Replicas? +

Classic libSQL Embedded Replicas serve reads locally while forwarding writes to a remote primary over the network. Turso Sync enables true local-first reads AND local writes against an embedded file, then pushes and pulls deltas asynchronously with the cloud.

Does TursoDB support native vector search for RAG and AI Agents? +

Yes. You can store vectors directly in columns such as `F32_BLOB(1536)`, build DiskANN-inspired vector indexes, and query top-K similar rows using standard SQL alongside relational filters—eliminating a separate vector database.

Is tursodb.cn an official website of Turso? +

No. tursodb.cn is an independent multilingual developer community hub providing documentation, engineering deep dives, and localized guides in English, Simplified Chinese, Traditional Chinese, and German. For official cloud billing, accounts, and enterprise support, always visit https://turso.tech/.

Looking for hands-on code examples?

Jump to Quickstart Docs
Search
Press Esc to close · Powered by Pagefind