Skip to content

storeVectorsInGraph=false ignored: vecgraph still inlines vectors #3142

@tae898

Description

@tae898

Summary
Setting storeVectorsInGraph=false still produces a vecgraph file that inlines vectors, so vectors are stored twice (bucket + graph), inflating disk and RSS.

Repro

  1. Create a vector index with metadata storeVectorsInGraph=false.
  2. Ingest data; run one search to trigger graph build.
  3. Observe vecgraph size ~raw vectors and high RSS.

Expected
When storeVectorsInGraph=false, the graph file should store only topology (no vectors).

Actual
Graph serialization still writes inline vectors regardless of storeVectorsInGraph.

Proposed fix

  • Gate graph serialization on metadata.storeVectorsInGraph; skip writing vectors when false.
  • Add coverage for both true/false paths.

Help
I can open a PR with the guard and tests.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions