Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

benchmarks: dense id index for the delete on every engine that lacks one, behind BENCH_DENSE_ID_INDEX=1 (default off) (#291) - #292

Merged
tae898 merged 2 commits into
mainfrom
issue/291-dense-id-index
Oct 8, 2026
Merged

tae898 merged 2 commits into
mainfrom
issue/291-dense-id-index

Conversation

@tae898

@tae898 tae898 commented Oct 8, 2026

Copy link
Copy Markdown

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.

Engine Index
ArcadeDB (embedded and served) CREATE INDEX ON Article (vid) UNIQUE_HASH
pgvector vid INTEGER PRIMARY KEY
Neo4j uniqueness constraint on Article.vid
Memgraph CREATE INDEX ON :Article(vid)
FalkorDB CREATE INDEX FOR (a:Article) ON (a.vid)
DuckDB CREATE UNIQUE INDEX t_id ON t (id)
LanceDB BTREE scalar index on id

The 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 stamps dense_id_index: the statement, or key where the engine's own key is the id. Unset, behaviour, timing, and row fields are unchanged.

  • /next: while ArcadeDB's dense delete rows lack the stamp, the dense table says the delete ran without an id index, and the next-measurement list says the seven engines are measured again there; the release line says comparators carry over unless a line below says otherwise.
  • Registered in 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_INDEXES explains why the switch-dependent index is not in it.
  • runner.py forwards the switch into the container.
  • LanceDB's index readback now picks the vector column's index; with two indexes it read back the BTREE (found by the smoke).

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

tae898 and others added 2 commits October 8, 2026 18:17
…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
@tae898
tae898 merged commit 656a7a0 into main Oct 8, 2026
2 checks passed
@tae898
tae898 deleted the issue/291-dense-id-index branch October 8, 2026 09:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

1 participant