This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
benchmarks: dense id index for the delete on every engine that lacks one, behind BENCH_DENSE_ID_INDEX=1 (default off) (#291) - #292
Merged
Conversation
…one, behind BENCH_DENSE_ID_INDEX=1 (default off) (#291) ArcadeDB, pgvector, Neo4j, Memgraph, FalkorDB, DuckDB, and LanceDB stored the vector id as a plain property and scanned for it in the mutation pass's delete; the other dense engines delete through a key they always index. With the switch on, each of the seven builds an index on the id (built on the empty store, or right after a one-statement load, inside ingest_s) and every dense row stamps dense_id_index. Unset, nothing changes. /next says ArcadeDB's delete ran without the index while the rows lack the stamp, and the next-measurement list says those engines are measured again. Registered in overrides.py, PROTOCOL.md section 7, CAMPAIGN.md row 84. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WQegLio3qLR2dE6gBFhRK6
…x listed (the id BTREE under BENCH_DENSE_ID_INDEX=1) (#291) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WQegLio3qLR2dE6gBFhRK6
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #291.
The dense lane's mutation pass deletes by the vector's id. Chroma, Qdrant, Milvus, Elasticsearch, MongoDB, ArangoDB, SurrealDB, sqlite-vec, and LadybugDB address a record by a key they always index. ArcadeDB, pgvector, Neo4j, Memgraph, FalkorDB, DuckDB, and LanceDB stored the id as a plain property and scanned for it, which is why ArcadeDB showed 8.1x the comparator median on the delete column at 1M.
BENCH_DENSE_ID_INDEX=1(default off) gives every one of those seven engines the index its own docs name for a key lookup, under the index parity rule: any index added to ArcadeDB is matched for every comparator that lacks one, or not added.CREATE INDEX ON Article (vid) UNIQUE_HASHvid INTEGER PRIMARY KEYArticle.vidCREATE INDEX ON :Article(vid)CREATE INDEX FOR (a:Article) ON (a.vid)CREATE UNIQUE INDEX t_id ON t (id)idThe index is built on the empty store (or right after DuckDB's and LanceDB's one-statement load), inside
ingest_s, so its cost is counted. With the switch on, every dense row stampsdense_id_index: the statement, orkeywhere the engine's own key is the id. Unset, behaviour, timing, and row fields are unchanged.overrides.py(override: dense_id_index), PROTOCOL.md section 7, CAMPAIGN.md section 7 row 84, RESULTS-MAP, page_check's row-field list;fairness_check.ARCADEDB_HASH_ID_INDEXESexplains why the switch-dependent index is not in it.runner.pyforwards the switch into the container.Verification on the laptop: 626 benchmark tests pass (new
test_dense_id_index.py). Real-engine smoke at micro with mutation on and the switch on: all 9 arms (both ArcadeDB arms, pgvector, Neo4j, Memgraph, FalkorDB, DuckDB, both LanceDB arms) complete with the stamp and 0 deleted hits after the delete; LanceDB also run with the switch off: no stamp, same index type read back.🤖 Generated with Claude Code
https://claude.ai/code/session_01WQegLio3qLR2dE6gBFhRK6