docs: explain temporary storage for large database operations - #853
Open
roli-lpci wants to merge 1 commit into
Open
docs: explain temporary storage for large database operations#853roli-lpci wants to merge 1 commit into
roli-lpci wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #430.
Adds a focused troubleshooting section beside
Database.vacuum()for large operations that fail withdatabase or disk is fulleven when the database filesystem has room.The section shows setting
PRAGMA temp_store = MEMORYon the same connection when sufficient RAM is available, and selecting a writable temporary directory withSQLITE_TMPDIRbefore starting the CLI on Unix-like systems. It includes the relevant limits: VACUUM disk-space requirements, compile-time overrides, existing temporary objects being deleted when changing the pragma, and journal/WAL storage. It links SQLite's authoritative documentation and avoids the deprecatedtemp_store_directorypragma.Validation:
PRAGMA integrity_check = ok; the requestedtemp_storevalue read back as2.uv run --python 3.11 --group docs make -C docs html: build succeeded.git diff --check: passed.Prepared with AI assistance.
📚 Documentation preview 📚: https://sqlite-utils--853.org.readthedocs.build/en/853/