Repository navigation
Docs: key-value storage with SQL, and the ALTER DATABASE txWalFlush reopen warning - #576
Merged
Merged
Conversation
…lFlush on an open database The recipe is a document type with a unique index, UPSERT, lookup_by_key and a range scan, run by tests/test_docs_key_value_page.py on both builds. The strace counts (0 or 1 fdatasync per 300 commits after ALTER DATABASE on the open database, 302 to 305 after a reopen, set_wal_flush or the system property) come from runs of 26.11.1.post4 of both packages. Closes #575
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 #575
Adds the how-to page
how-to/key-value.adoc(a durable key-value store through SQL: type with a unique index, upsert,lookup_by_key, prefix scan, how to make commits sync, and thestracecheck) and a warning box onhow-to/durability.adoc:ALTER DATABASEwitharcadedb.txWalFlushreads back the new level, but the open database does not sync until it is reopened (orset_wal_flush, or the system property at process start).tests/test_docs_key_value_page.pyruns every Python block of the new page, in order, and checks the printed text. I ran it withuv run --no-project --with arcadedband with--with arcadedb-jvm(3 passed each), and the durability page tests too (JVM 30 passed, native 26 passed and 4 skipped, the existing JVM-only skips). Thestracecounts on both pages come from runs of 26.11.1.post4 of both packages, 300 commits each.