Skip to content

Docs: key-value storage with SQL, and the ALTER DATABASE txWalFlush reopen warning - #576

Merged
tae898 merged 1 commit into
mainfrom
docs/key-value-575
Dec 4, 2026
Merged

tae898 merged 1 commit into
mainfrom
docs/key-value-575

Conversation

@tae898

@tae898 tae898 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

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 the strace check) and a warning box on how-to/durability.adoc: ALTER DATABASE with arcadedb.txWalFlush reads back the new level, but the open database does not sync until it is reopened (or set_wal_flush, or the system property at process start).

tests/test_docs_key_value_page.py runs every Python block of the new page, in order, and checks the printed text. I ran it with uv run --no-project --with arcadedb and 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). The strace counts on both pages come from runs of 26.11.1.post4 of both packages, 300 commits each.

…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
@tae898 tae898 added the documentation Improvements or additions to documentation label Dec 4, 2026
@tae898
tae898 merged commit f2cca43 into main Dec 4, 2026
26 checks passed
@tae898
tae898 deleted the docs/key-value-575 branch December 4, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: a durable key-value store with SQL, and ALTER DATABASE txWalFlush on an open database

1 participant