---
title: "Introducing Read-Only Database Attach for SQLite in Turso"
description: "Turso 0.1.3 adds read-only `ATTACH DATABASE`, letting a single session join across multiple SQLite databases without SQLite's default limit of 10 attached databases (hard maximum 125)."
url: "https://swe.quest/articles/introducing-read-only-database-attach-for-sqlite-in-turso-ea2634989cb273be"
canonical: "https://turso.tech/blog/introducing-read-only-database-attach-in-turso"
source: "Turso"
published: "2025-07-30"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["sqlite","sql","databases"]
---

# Introducing Read-Only Database Attach for SQLite in Turso

A post on [Turso](https://swe.quest/sources/turso.md), published 2025-07-30, 3 min read, Release. Original: [https://turso.tech/blog/introducing-read-only-database-attach-in-turso](https://turso.tech/blog/introducing-read-only-database-attach-in-turso)

## Summary

Turso 0.1.3 adds read-only \`ATTACH DATABASE\`, letting a single session join across multiple SQLite databases without SQLite's default limit of 10 attached databases (hard maximum 125). SQL examples cover shared reference data, archived per-year databases and cross-service reporting queries. Read-only mode avoids write locks and cross-database transaction coordination, and read-write support is planned. The release also fixes a WAL checkpoint write-amplification bug, reuses free space in B-tree pages, adds external sorting for ORDER BY on data larger than memory and speeds up connection time.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- SQL joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Turso, SQLite, ATTACH DATABASE, WAL

## Related posts

- [Turso v0.6.0](https://swe.quest/articles/turso-v0-6-0-5eb94c2c93fd0b4b.md): Turso · 2026-05-12 · Medium · 12 min read · SQLite, Databases, SQL, Storage engines
  Turso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO.
- [How Turso made connections to SQLite databases 575x faster](https://swe.quest/articles/how-turso-made-connections-to-sqlite-databases-575x-faster-271f1e3891c5cf67.md): Turso · 2025-07-29 · Medium · 4 min read · SQLite, Performance engineering, Rust, Concurrency
  SQLite re-reads and parses the sqlite\_schema table on every new connection, so opening a connection to a database with 10,000 tables takes about 23ms.
- [Turso v0.4.0](https://swe.quest/articles/turso-v0-4-0-191cca637e457c1d.md): Turso · 2026-01-05 · Medium · 3 min read · SQLite, Storage engines, Query engines, Local-first & sync, Concurrency
  Turso v0.4.0 overhauls its experimental MVCC mode, which lifts SQLite's single-writer limit, adding index support, checkpointing and recovery.
- [Bringing SQLite to Vercel Functions with Turso](https://swe.quest/articles/bringing-sqlite-to-vercel-functions-with-turso-afed2a49c7b44020.md): Turso · 2026-02-19 · Medium · 8 min read · SQLite, Serverless, Replication, Multi-tenancy, JavaScript
  Turso's partial sync replicates a subset of SQLite database pages into Vercel Functions so reads run in-process with no network round-trip, while writes go to the remote Turso database for durability and consistency.
- [Turso v0.7.0](https://swe.quest/articles/turso-v0-7-0-8d3ff93b34352c14.md): Turso · 2026-07-13 · Hard · 10 min read · SQLite, Storage engines, Consistency models, Memory management, Rust
  Turso 0.7 drops the beta label and focuses on performance and robustness for embedded, multi-tenant use: the core no longer blocks on I/O, yields CPU via a new StepResult::Yield, moves to fallible allocation so OOM surfaces as an error, and treats the page cache as a soft limit like SQLite.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
