mvcc
БесплатноБез исполняемых скриптовНе проверенMVCC journal mode - snapshot isolation, row versions, logical log, checkpoint and GC settings, how to test
от tursodatabase★ 25 410 звёзд на GitHubОб этом скилле
MVCC
Multi-version concurrency control, enabled per database:
PRAGMA journal_mode = 'mvcc';
It is a runtime setting, not a compile-time feature flag. Most bugs are not MVCC-specific, so rule MVCC out first unless the bug only reproduces with journal_mode=mvcc.
Differences from WAL
| Aspect | WAL | MVCC |
|---|---|---|
| Commit writes | Full pages | Affected rows only |
| Readers and writers | Do not block each other | Do not block each other |
| Persistence | .db-wal |
.db-log (logical log), replayed on restart |
| Isolation | Snapshot (page level) | Snapshot (row level) |
MVCC gives snapshot isolation, not serializability. The module docs in core/mvcc/ describe the data anomalies.
Each row version has a begin timestamp (when it becomes visible), an end timestamp (when it is deleted or replaced) and a flag saying the row already existed in the B-tree before MVCC wrote it.
Checkpointing and garbage collection
Checkpointing writes row versions to the B-tree and truncates the logical log. Old versions are dropped by garbage collection. Settings are PRAGMA mvcc_checkpoint_threshold (the logical log size in bytes that starts a checkpoint; default about 4 MB; -1 disables, 0 checkpoints after every commit), mvcc_gc_threshold and mvcc_group_commit. See docs/sql-reference/pragmas.mdx.
Limitations
PRAGMA wal_checkpoint(TRUNCATE)blocks other transactions, including reads. Passive checkpointing does not, but is behind--experimental-mvcc-passive-checkpoint.- Row versions live in memory, so large working sets use a lot of memory.
Testing
cargo test mvcc runs the MVCC tests. To run a test with MVCC on:
#[turso_macros::test(mvcc)]
fn test_something() {}
Установить mvcc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mvcc?
MVCC journal mode - snapshot isolation, row versions, logical log, checkpoint and GC settings, how to test
Как установить скилл mvcc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mvcc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic