Repository navigation
Docs: change a database-scope engine setting with ALTER DATABASE - #113
Merged
Merged
Conversation
Every SCOPE.DATABASE setting (all of arcadedb.vectorIndex.*) is set on one database with SQL, which db.command already runs, so the bindings need no wrapper (DSL first). Checked on engine main c3af6d9028: effectiveMutationsThreshold at 5000 vectors goes 1000 -> 250 after ALTER DATABASE `arcadedb.vectorIndex.rebuildGraphRatio` 0.05, and a SCOPE.SERVER setting is refused with a message naming SET SERVER SETTING. databases-and-queries.adoc gets a short section, the create_vector_index docstring the statement, and a test pins it on both wheels (1000 vectors: threshold 200, then 500 with the ratio at 0.5). Co-Authored-By: Claude Opus 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.
Closes #112
Every
SCOPE.DATABASEengine setting, including all ofarcadedb.vectorIndex.*, is set on one database with SQL thatdb.commandalready runs, so the bindings need no wrapper (DSL first). The docs never said so, and thecreate_vector_indexdocstring (#111) pointed atrebuildGraphRatiowithout saying how to change it.how-to/databases-and-queries.adoc: a short "Database settings" section: theALTER DATABASEstatement (key backquoted), that it applies to that database only, that aSCOPE.SERVERsetting is refused there (the engine namesSET SERVER SETTING), and how to read a vector setting back throughget_stats()["effectiveMutationsThreshold"].create_vector_indexdocstring: the statement next torebuildGraphRatio.tests/test_vector_index_introspection.py: on a 1,000-vector index the threshold is 200, then 500 afterALTER DATABASE \arcadedb.vectorIndex.rebuildGraphRatio` 0.5`, on both wheels.Checked beforehand against engine main
c3af6d9028(JDK 25): 1,000 to 250 at 5,000 vectors with the ratio at 0.05. Locally: black 26.10.1, isort 9.0.2, bandit, compile, pyflakes. The test runs in CI.🤖 Generated with Claude Code