---
title: "How Sample Vault syncs gigabyte-scale databases from cloud to local with Turso"
description: "Sample Vault, an AI sample browser for music producers, gives each premium user a dedicated Turso database."
url: "https://swe.quest/articles/how-sample-vault-syncs-gigabyte-scale-databases-from-cloud-to-local-with-turso-df87236519a9ee42"
canonical: "https://turso.tech/blog/how-sample-vault-syncs-gigabyte-scale-databases-from-cloud-to-local-with-turso"
source: "Turso"
published: "2026-05-04"
difficulty: "easy"
kind: "Case study"
reading_minutes: 6
tags: ["local-first","sqlite","multi-tenancy","replication"]
---

# How Sample Vault syncs gigabyte-scale databases from cloud to local with Turso

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-05-04, 6 min read, Case study. Original: [https://turso.tech/blog/how-sample-vault-syncs-gigabyte-scale-databases-from-cloud-to-local-with-turso](https://turso.tech/blog/how-sample-vault-syncs-gigabyte-scale-databases-from-cloud-to-local-with-turso)

## Summary

Sample Vault, an AI sample browser for music producers, gives each premium user a dedicated Turso database. Processing (spectral analysis, ML classification, AI tagging) runs in the cloud and syncs down to a full local embedded replica, so libraries of 100K to 1.2M+ audio files are queryable offline. Supabase failed on connectivity and upload speed, PGLite used too much RAM and had no sync layer, and Electric SQL and PowerSync were too expensive and synced in the wrong direction. Sync runs on launch, every 5 minutes, and on demand, and database-per-user tenancy avoids noisy neighbours without any custom sync code.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Local-first & sync](https://swe.quest/tags/local-first.md) (Architecture & design)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)

## Prerequisites

- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- local-first sync concepts

## Keywords

Turso, libSQL, Sample Vault, PGLite, Supabase, Electric SQL, PowerSync

## Related posts

- [Introducing Databases Anywhere with Turso Sync](https://swe.quest/articles/introducing-databases-anywhere-with-turso-sync-0b3d82e805c07b9f.md): Turso · 2025-10-08 · Medium · 4 min read · Local-first & sync, SQLite, Replication, Identity & auth, JavaScript
  Turso Sync lets local SQLite-compatible Turso databases, in Node or in the browser via WASM, sync with Turso Cloud through push, pull and sync-aware checkpoint methods layered on the standard database API.
- [2 million databases and counting: the architecture behind Sauna's AI teammate](https://swe.quest/articles/2-million-databases-and-counting-the-architecture-behind-sauna-s-ai-teammate-ca635665d8781bf3.md): Turso · 2026-11-03 · Easy · 8 min read · SQLite, Multi-tenancy, Replication, AI agents, System design
  Sauna, a proactive AI work assistant, gives every session, agent and connected inbox or calendar its own Turso database, creating about 90,000 databases a day and over 2 million in total.
- [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.
- [Introducing Offline Writes for Turso](https://swe.quest/articles/introducing-offline-writes-for-turso-e48bdc4a18b3aae7.md): Turso · 2024-10-25 · Easy · 4 min read · Local-first & sync, SQLite, Replication, Multi-tenancy
  Turso is opening a private beta for Offline Writes, letting applications write to local embedded SQLite replicas while online or offline and sync those changes to the cloud later.
- [Building Local-First Apps: The Complete Guide to Offline-First Database Sync](https://swe.quest/articles/building-local-first-apps-the-complete-guide-to-offline-first-database-sync-047687e423c4421f.md): Turso · 2026-07-27 · Medium · 9 min read · Local-first & sync, SQLite, Replication, Consistency models, TypeScript
  Turso Sync brings local-first behaviour to SQLite-based apps.

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)
