Repository navigation
docs: Durability section on txWalFlush (concurrency page) - #146
Merged
Merged
Conversation
Shows how to turn on WAL flushing from Python on both packages (SQL ALTER DATABASE, or -D through jvm_args / ARCADEDB_NATIVE_ISOLATE_ARGS), links the main docs for the semantics. Snippet run on the native and JVM 26.11.1.dev0 wheels. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Adds a short "Durability: surviving power loss" section to
how-to/concurrency.adoc, after "Signals and crashes", which already pointed to the main docs for WAL flush. It says thatarcadedb.txWalFlushdefaults to0(a commit survives a process crash, not power loss), shows how to set it to1from Python withALTER DATABASEon both packages, how to set it process-wide with-D(jvm_args/ARCADEDB_JVM_ARGSforarcadedb-jvm,ARCADEDB_NATIVE_ISOLATE_ARGSforarcadedb), and links the main ArcadeDB docs for the semantics.Verified on the native and JVM
26.11.1.dev0wheels (Python 3.12, Linux): the default reads0, theALTER DATABASEmakes it1, a row commits, and the value is still1after a reopen.-Dthroughjvm_argsand throughARCADEDB_NATIVE_ISOLATE_ARGSalso gave1on a new database. The order-of-magnitude commit cost (about 0.07 ms vs about 5 ms) is from one laptop and labelled as such.🤖 Generated with Claude Code