You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dense vector search at 10M: per-hop page reads dominate latency; search vector cache capped at 1M entries #5412
At 10M vectors, dense (JVector) query latency is dominated by reading vectors from index pages on every distance evaluation, because the search-side vector cache is hard-capped below the corpus size. Raising or adapting that cap should recover most of the gap to in-RAM engines without touching the write path or transactional semantics.
Evidence
DEEP-10M (10M x 96-dim fp32, maxConnections=32, storeVectorsInGraph: false, embedded, 26.8.1.dev3 line, N=5): p50 5.45 ms / p99 17.9 ms at recall@10 0.950. On the same machine and dataset, in-RAM engines sit at 0.7-1.3 ms p50 at comparable recall.
A latency decomposition on SIFT-1M isolates where the time goes. Per query, four progressively shorter paths were timed: the full Python adapter path (SQL + result materialization), the SQL execution alone, the direct Java call (findNeighborsFromVector), and the FFI array conversion alone:
conversion: 0.012 ms
direct Java API / SQL exec / full path: all 2.3-3.0 ms (agree within warm-cache drift)
So the language boundary, SQL executor, and materialization are out; virtually all time is inside the core search. With storeVectorsInGraph: false every distance evaluation during beam search fetches its vector through the page layer, and ArcadePageVectorValues caps its cache at min(effectiveCacheSize, 1_000_000) entries - at 10M vectors that is a 90% structural miss rate on a corpus whose raw vectors are only 3.8 GB.
GrowableVectorValues already implements the lazy-load-then-cache pattern on the build side, so the mechanism exists in the codebase.
Suggestion
Make the search cache capacity configurable (or derived from heap/corpus size), with an option to hold the full vector set when it fits: fp32 residency here is 3.8 GB and an int8-quantized cache under 1 GB. Eviction can stay as-is for corpora that exceed the budget. This is the "search-time vector cache" follow-up to the build-side fix in #3144; happy to benchmark any variant on the 10M harness.
CPU profile supporting the cache-cap mechanism, from the BUILD side (DEEP-10M fp32, maxConnections=32, 24 GiB heap, async-profiler cpu mode over ~3 min of steady graph construction, 123,755 samples). Collapsed stacks: https://gist.github.com/tae898/7929cbcbadcb578bb76eace9d18a2aa7
81.8% of build CPU is inside ArcadePageVectorValues.getVector, and the expensive part is not the page read but what happens on a cache miss:
self time
frame
14.8%
Binary.getUnsignedNumber (varint decode inside record deserialization)
9.5%
ConcurrentHashMap.get (the vector cache itself)
7.9%
BinarySerializer.deserializeValue
6.4%
Integer.equals (cache key comparisons)
5.6%
TransactionContext.getPage
4.6%
LocalDatabase.executeInReadLock
4.1%
LocalSchema.getBucketById
Inclusive: ImmutableDocument.get 49.6%, lookupByRID 20.2%, BinarySerializer.deserializeProperty 24.6%. JVector's own algorithmic work (diversity scoring, neighbor insertion) accounts for less CPU than the vector supply feeding it.
Reading: with the cache capped at 1M entries against 10M vectors, ~90% of accesses miss, and each miss pays a full document lookup + binary deserialization of the whole record to extract one float[] property. So two compounding fixes:
The cache-capacity change already proposed here (fp32 vectors for this corpus are 3.8 GB, they fit).
A raw-embedding read path for misses: resolve just the vector property from the record bytes instead of materializing the whole document. That helps any corpus that exceeds whatever cache budget is configured, search and build alike.
Caveat on scope: this window sampled the build phase (the searcher's query-time profile will follow separately), but the access path under getVector is the same one search uses per beam-search hop, so the miss cost applies to both. It also quantifies a chunk of the fp32 build slowness discussed in #3144: the 85-minute build spends most of its CPU deserializing documents.
Thanks for the detailed report and the profile, they pointed straight at the right area even though the cause turned out to be a bit different from the 1M cap.
That 1_000_000 is the initial size of the map used during graph building, not a limit. The search side had a separate problem: its vector cache held 1024 entries and was recreated from scratch for every single query. So nothing was ever reused between queries - running the exact same query twice re-read every vector it visited from disk both times. Raising the limit alone would not have helped: we measured it, and a bigger per-query cache is worth essentially nothing.
Fixed in eec94cd16. Each vector index now keeps one cache that is shared by all queries and stays warm, and the cache itself is a leaner structure (no boxed keys), which also removes the ConcurrentHashMap.get / Integer.equals overhead you saw in the build profile. An index that has just been rebuilt comes out already warm.
Two new settings:
arcadedb.vectorIndex.searchCacheSize - 0 (default) sizes the cache to your dataset automatically, a positive number pins it, -1 disables it.
arcadedb.vectorIndex.searchCacheMaxHeapPercent - ceiling for the automatic sizing, default 25% of the heap. Your 10M x 96-dim fp32 set is ~3.8 GB, so on your 24 GiB heap it will be held entirely.
getStats() on the index now reports searchVectorCacheCapacity, vectorCacheHits and vectorCacheMisses, so you can check whether your working set actually fits and raise the size if not.
Result on our harness (100K x 128-dim fp32, k=10, efSearch=100): p50 2.69 ms -> 0.74 ms, p99 5.43 ms -> 1.65 ms, document reads per query 3521 -> 250.
On your second point, the reason a cache miss is so expensive is that with the default settings the vector index only stores a pointer to the record - the document is the only copy of the vector, so a miss has to go and read it. That is also why your INT8 numbers were better: quantized vectors are stored in the index pages. Storing raw fp32 in the index pages too would remove that cost entirely, at the price of roughly doubling the disk used by the vectors; we have that noted as a follow-up. In the meantime storeVectorsInGraph: true already gives you the same benefit today if you can spare the disk.
Would be great if you could re-run the 10M benchmark on main and let us know how it compares.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Re-ran the full 10M benchmark on main (c885235, wheel built from source; includes the searcher pool from #5413). Same host, same harness, DEEP-10M fp32, M=32, 24 g heap, single stream, one build + 5 query passes of the 1000-query set.
The query-side fix is dramatic.
pre-fix (dev3 line)
main, warm cache (passes 2-5)
p50
5.5 ms
0.81 ms [0.78-0.82]
p99
17.9 ms
1.22 ms [1.09-1.32]
recall@10
0.950
0.9495
6.8x on the median, 14x on the tail, recall identical. This moves ArcadeDB from mid-pack to ahead of every specialist I benchmark on this tier at matched recall (Qdrant p50 was 1.3 ms on the same box). The first pass shows the cold-start cost transparently: p50 4.55 ms / p99 64.7 ms while the cache fills, then it never looks back. getStats() confirms the sizing works as designed: searchVectorCacheCapacity 16,777,216, 10.4M hits vs 1.84M misses over the whole run, dataset fully resident.
One honest counterweight: the build got 4x slower. Same build that took 2,796 s pre-fix now takes 11,126 s (ingest included in both). Heap sat at 21-23 GB of 24 GB throughout the graph-build phase, so my working theory is the auto-sized search cache (25% of heap by default) now competes with the build's ~19 GB heap floor from #3144 and pushes the build into GC pressure. If that is right, exempting the search cache during a from-scratch build (or sizing it against free-heap-after-build-state rather than total heap) would recover the old build time without giving back any of the query win. Happy to re-run with arcadedb.vectorIndex.searchCacheSize=-1 during build if you want the A/B.
For my paper this lands as: fp32 dense at 10M is now sub-millisecond warm at 0.95 recall, with a disclosed 3.1 h build and a documented cold-start transient. Thanks for this one, it changes the headline.
Thanks for the re-run, and especially for reporting the build cost instead of just the headline number.
Hold off on the searchCacheSize=-1 A/B: I'm fairly confident it would come back negative and cost you 3 hours. You run with storeVectorsInGraph: false, and on that path the graph-persistence pass writes topology only and never materializes a vector, so the search cache is allocated but stays empty for the whole build. At your sizing that's a ~67 MB pointer array, not GBs of vectors. Your own numbers agree: pass 1 was cold (p50 4.55 ms, and the miss count matches a cache that started empty), which couldn't happen if the build had left the corpus resident.
My current suspicion is a different part of the same change. The commit also replaced the cache used during graph construction, and with it the replacement policy: it used to fill up and then freeze, which happened to pin the earliest vectors, i.e. the entry-point hubs that every insertion's beam search walks. The new one evicts on collision, so those hubs get pushed out by the long tail of one-shot accesses. Same memory, much lower hit rate, and every extra miss pays the exact document-read cost this issue is about. That would also explain the heap you saw without anything extra being retained: more misses means more short-lived allocations, so the collector runs hot and occupancy reads high.
Two things would help me confirm, both free from logs you already have:
The build log line Building graph with N vectors using property '...' (cache enabled: size=N).
Whether you set arcadedb.vectorIndex.graphBuildCacheSize (or the per-index graphBuildCacheSize), and to what.
We can reproduce this side locally at a much smaller scale, so no need for you to spend another 3 h build until we have a patch worth measuring. If it's confirmed, the fix keeps the query win untouched and should put the build at or below the pre-fix 2,796 s.
Both answers, straight from the logs of the runs already reported:
Build log line, identical in the fp32 and the INT8 run:
INFO [LSMVectorIndex] Building graph with 9990000 vectors using property 'embedding' (cache enabled: size=100000)
I set neither arcadedb.vectorIndex.graphBuildCacheSize nor the per-index graphBuildCacheSize anywhere in the harness; that 100,000 is whatever the default resolves to. So the build cache holds 1% of the corpus, which makes your replacement-policy theory very plausible: fill-and-freeze on 100k entries happens to pin exactly the early hub vectors, evict-on-collision lets the long tail of one-shot accesses flush them.
One more data point from my side that fits the miss-cost mechanism: on the same line, the INT8 build got faster (8,542 s on the dev6 line to 5,840 s now) while fp32 got 4x slower. INT8 misses are cheap because quantized vectors live in the index pages; fp32 misses pay the full document read. A policy change that raises the miss rate for both would show exactly this asymmetry: invisible (and outweighed by your boxed-key removal) where misses are cheap, catastrophic where they are not.
Agreed on skipping the searchCacheSize A/B, and thanks for saving me the 3 hours; the cold pass 1 argument is airtight. Happy to run the 10M build once on a patch when you have one.
Found it, and I was wrong about the cause. Fix is on main.
First, retracting my theory: I measured the cache replacement policy directly and it is not the problem. At your cache-to-corpus ratio the new cache is about 4x faster to build than the old one, not slower.
The real cause is a different change, from #3144. It capped the cache used during the graph build at 100,000 vectors for every index. With no quantization your vectors live only in the documents, so everything past those 100,000 had to be re-read from disk during the build, over and over. Before that cap, a build kept the whole set in RAM and read nothing. That is your 4x, and it also explains why INT8 was unaffected: a quantized index reads a miss straight from its index pages, so the cap costs it almost nothing.
The build cache now sizes itself from the index size and the available heap instead of a fixed number. Measured on a 200,000 x 96-dim fp32 index, from-scratch build: 16.2s to 7.3s, and document reads during the build from 25 million to zero, which matches the build time from before the cap was introduced. Nothing on the query side changed, so the search numbers you measured stand.
Two settings if you ever need them, both optional:
arcadedb.vectorIndex.graphBuildCacheSize, now 0 (automatic) by default. A positive value still pins it.
arcadedb.vectorIndex.graphBuildCacheMaxHeapPercent, default 25, the share of the heap the automatic sizing may use. Your 10M x 96-dim set is roughly 4.5 GB, so it fits in 25% of your 24 GB heap and should be fully resident.
If you re-run the 10M build on main I would expect it back around your original 2,796 s. If it is not, the number worth sending is vectorFetchFromDocuments from getStats() right after the build: it should be zero.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Confirmed the mechanism, and the counter you asked for is exactly the discriminator. The 10M re-run has to wait for the benchmark host (busy ~27 h), so meanwhile I reproduced your shape on a laptop: 200,000 x 96-dim fp32, storeVectorsInGraph: false, maxConnections: 32, 4 g heap, from-scratch build, N=3 per arm.
26.8.1.dev18 (pre-fix)
current main
build
24.6 / 26.9 / 25.9 s
19.1 / 18.9 / 21.2 s
vectorFetchFromDocuments after build
12,469,765 / 11,724,110 / 12,787,922
0 / 0 / 0
Zero document reads on all three post-fix runs, against ~12 M before, so the cap was doing exactly what you described. Worth noting for anyone reading this later: at 200k the time gain is only about 1.3x because half the corpus (100k of 200k) still fit under the old fixed cap. The miss ratio scales with corpus-to-cap, so at my 10M tier only 1% was resident, which is consistent with the 4x I measured there and with your expectation that it returns to ~2,796 s.
Also confirms your INT8 explanation from the other direction: my INT8 10M build actually got faster across the same window (8,542 s to 5,840 s), which is what you would expect when misses are served from the index pages and never touch a document.
Full 10M fp32 re-run with vectorFetchFromDocuments reported goes on the machine as soon as it frees; I will post it here either way. Nice catch on retracting the eviction-policy theory before we both spent a day on it.
10M re-run done on the benchmark host, 26.8.1.dev20 (contains the auto-sizing build cache). Same cell as every previous dense number here: DEEP-10M fp32, M=32, 24 g heap, one build + 5 query passes of the 1000-query set, serial on the pinned cpuset.
Build: 11,126 s -> 2,692.8 s, and vectorFetchFromDocuments is 0.
That is 4.13x, and it lands slightly under the 2,796 s I measured before the cap was introduced, so the regression is fully retired rather than merely reduced. Your prediction was exact on both counts.
Query side, unchanged-to-better (warm passes 2-5, median [min-max]):
previous line
dev20
p50
0.81 ms [0.78-0.82]
0.723 ms [0.711-0.745]
p99
1.22 ms [1.09-1.32]
1.062 ms [0.935-1.125]
recall@10
0.9495
0.9491
So nothing was traded away for the build win; if anything the tail is slightly better, plausibly the searcher pooling from #5413 which also rode this line. The cold first pass still shows the cache filling (p50 4.42 ms, p99 20.1 ms) and then never returns.
For the record, since dev wheels get pruned from PyPI: the full A/B is archived in my repo with configs and both arms, and the summary is
capped build cache (dev18 line): 11,126 s, ~12.5 M document reads at 200k scale
auto-sized (dev20): 2,692.8 s, 0 document reads
This closes it from my side. Thanks for chasing the real cause instead of the plausible one, and for saving me the searchCacheSize A/B that would have measured nothing.
Activity
tae898 commentedon Jul 25, 2026
CPU profile supporting the cache-cap mechanism, from the BUILD side (DEEP-10M fp32, maxConnections=32, 24 GiB heap, async-profiler cpu mode over ~3 min of steady graph construction, 123,755 samples). Collapsed stacks: https://gist.github.com/tae898/7929cbcbadcb578bb76eace9d18a2aa7
81.8% of build CPU is inside
ArcadePageVectorValues.getVector, and the expensive part is not the page read but what happens on a cache miss:Binary.getUnsignedNumber(varint decode inside record deserialization)ConcurrentHashMap.get(the vector cache itself)BinarySerializer.deserializeValueInteger.equals(cache key comparisons)TransactionContext.getPageLocalDatabase.executeInReadLockLocalSchema.getBucketByIdInclusive:
ImmutableDocument.get49.6%,lookupByRID20.2%,BinarySerializer.deserializeProperty24.6%. JVector's own algorithmic work (diversity scoring, neighbor insertion) accounts for less CPU than the vector supply feeding it.Reading: with the cache capped at 1M entries against 10M vectors, ~90% of accesses miss, and each miss pays a full document lookup + binary deserialization of the whole record to extract one float[] property. So two compounding fixes:
Caveat on scope: this window sampled the build phase (the searcher's query-time profile will follow separately), but the access path under
getVectoris the same one search uses per beam-search hop, so the miss cost applies to both. It also quantifies a chunk of the fp32 build slowness discussed in #3144: the 85-minute build spends most of its CPU deserializing documents.perf(#5412): index-scoped vector cache for dense search
Merge branch 'issue-5412': index-scoped vector cache for dense search (…
lvca commentedon Jul 25, 2026
Thanks for the detailed report and the profile, they pointed straight at the right area even though the cause turned out to be a bit different from the 1M cap.
That
1_000_000is the initial size of the map used during graph building, not a limit. The search side had a separate problem: its vector cache held 1024 entries and was recreated from scratch for every single query. So nothing was ever reused between queries - running the exact same query twice re-read every vector it visited from disk both times. Raising the limit alone would not have helped: we measured it, and a bigger per-query cache is worth essentially nothing.Fixed in
eec94cd16. Each vector index now keeps one cache that is shared by all queries and stays warm, and the cache itself is a leaner structure (no boxed keys), which also removes theConcurrentHashMap.get/Integer.equalsoverhead you saw in the build profile. An index that has just been rebuilt comes out already warm.Two new settings:
arcadedb.vectorIndex.searchCacheSize-0(default) sizes the cache to your dataset automatically, a positive number pins it,-1disables it.arcadedb.vectorIndex.searchCacheMaxHeapPercent- ceiling for the automatic sizing, default 25% of the heap. Your 10M x 96-dim fp32 set is ~3.8 GB, so on your 24 GiB heap it will be held entirely.getStats()on the index now reportssearchVectorCacheCapacity,vectorCacheHitsandvectorCacheMisses, so you can check whether your working set actually fits and raise the size if not.Result on our harness (100K x 128-dim fp32, k=10, efSearch=100): p50 2.69 ms -> 0.74 ms, p99 5.43 ms -> 1.65 ms, document reads per query 3521 -> 250.
On your second point, the reason a cache miss is so expensive is that with the default settings the vector index only stores a pointer to the record - the document is the only copy of the vector, so a miss has to go and read it. That is also why your INT8 numbers were better: quantized vectors are stored in the index pages. Storing raw fp32 in the index pages too would remove that cost entirely, at the price of roughly doubling the disk used by the vectors; we have that noted as a follow-up. In the meantime
storeVectorsInGraph: truealready gives you the same benefit today if you can spare the disk.Would be great if you could re-run the 10M benchmark on
mainand let us know how it compares.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
tae898 commentedon Jul 26, 2026
Re-ran the full 10M benchmark on main (c885235, wheel built from source; includes the searcher pool from #5413). Same host, same harness, DEEP-10M fp32, M=32, 24 g heap, single stream, one build + 5 query passes of the 1000-query set.
The query-side fix is dramatic.
6.8x on the median, 14x on the tail, recall identical. This moves ArcadeDB from mid-pack to ahead of every specialist I benchmark on this tier at matched recall (Qdrant p50 was 1.3 ms on the same box). The first pass shows the cold-start cost transparently: p50 4.55 ms / p99 64.7 ms while the cache fills, then it never looks back.
getStats()confirms the sizing works as designed:searchVectorCacheCapacity16,777,216, 10.4M hits vs 1.84M misses over the whole run, dataset fully resident.One honest counterweight: the build got 4x slower. Same build that took 2,796 s pre-fix now takes 11,126 s (ingest included in both). Heap sat at 21-23 GB of 24 GB throughout the graph-build phase, so my working theory is the auto-sized search cache (25% of heap by default) now competes with the build's ~19 GB heap floor from #3144 and pushes the build into GC pressure. If that is right, exempting the search cache during a from-scratch build (or sizing it against free-heap-after-build-state rather than total heap) would recover the old build time without giving back any of the query win. Happy to re-run with
arcadedb.vectorIndex.searchCacheSize=-1during build if you want the A/B.For my paper this lands as: fp32 dense at 10M is now sub-millisecond warm at 0.95 recall, with a disclosed 3.1 h build and a documented cold-start transient. Thanks for this one, it changes the headline.
lvca commentedon Jul 26, 2026
Thanks for the re-run, and especially for reporting the build cost instead of just the headline number.
Hold off on the
searchCacheSize=-1A/B: I'm fairly confident it would come back negative and cost you 3 hours. You run withstoreVectorsInGraph: false, and on that path the graph-persistence pass writes topology only and never materializes a vector, so the search cache is allocated but stays empty for the whole build. At your sizing that's a ~67 MB pointer array, not GBs of vectors. Your own numbers agree: pass 1 was cold (p50 4.55 ms, and the miss count matches a cache that started empty), which couldn't happen if the build had left the corpus resident.My current suspicion is a different part of the same change. The commit also replaced the cache used during graph construction, and with it the replacement policy: it used to fill up and then freeze, which happened to pin the earliest vectors, i.e. the entry-point hubs that every insertion's beam search walks. The new one evicts on collision, so those hubs get pushed out by the long tail of one-shot accesses. Same memory, much lower hit rate, and every extra miss pays the exact document-read cost this issue is about. That would also explain the heap you saw without anything extra being retained: more misses means more short-lived allocations, so the collector runs hot and occupancy reads high.
Two things would help me confirm, both free from logs you already have:
Building graph with N vectors using property '...' (cache enabled: size=N).arcadedb.vectorIndex.graphBuildCacheSize(or the per-indexgraphBuildCacheSize), and to what.We can reproduce this side locally at a much smaller scale, so no need for you to spend another 3 h build until we have a patch worth measuring. If it's confirmed, the fix keeps the query win untouched and should put the build at or below the pre-fix 2,796 s.
tae898 commentedon Jul 26, 2026
Both answers, straight from the logs of the runs already reported:
arcadedb.vectorIndex.graphBuildCacheSizenor the per-indexgraphBuildCacheSizeanywhere in the harness; that 100,000 is whatever the default resolves to. So the build cache holds 1% of the corpus, which makes your replacement-policy theory very plausible: fill-and-freeze on 100k entries happens to pin exactly the early hub vectors, evict-on-collision lets the long tail of one-shot accesses flush them.One more data point from my side that fits the miss-cost mechanism: on the same line, the INT8 build got faster (8,542 s on the dev6 line to 5,840 s now) while fp32 got 4x slower. INT8 misses are cheap because quantized vectors live in the index pages; fp32 misses pay the full document read. A policy change that raises the miss rate for both would show exactly this asymmetry: invisible (and outweighed by your boxed-key removal) where misses are cheap, catastrophic where they are not.
Agreed on skipping the searchCacheSize A/B, and thanks for saving me the 3 hours; the cold pass 1 argument is airtight. Happy to run the 10M build once on a patch when you have one.
fix(#3144): size the HNSW build cache from the corpus for document-ba…
lvca commentedon Jul 26, 2026
Found it, and I was wrong about the cause. Fix is on main.
First, retracting my theory: I measured the cache replacement policy directly and it is not the problem. At your cache-to-corpus ratio the new cache is about 4x faster to build than the old one, not slower.
The real cause is a different change, from #3144. It capped the cache used during the graph build at 100,000 vectors for every index. With no quantization your vectors live only in the documents, so everything past those 100,000 had to be re-read from disk during the build, over and over. Before that cap, a build kept the whole set in RAM and read nothing. That is your 4x, and it also explains why INT8 was unaffected: a quantized index reads a miss straight from its index pages, so the cap costs it almost nothing.
The build cache now sizes itself from the index size and the available heap instead of a fixed number. Measured on a 200,000 x 96-dim fp32 index, from-scratch build: 16.2s to 7.3s, and document reads during the build from 25 million to zero, which matches the build time from before the cap was introduced. Nothing on the query side changed, so the search numbers you measured stand.
Two settings if you ever need them, both optional:
arcadedb.vectorIndex.graphBuildCacheSize, now0(automatic) by default. A positive value still pins it.arcadedb.vectorIndex.graphBuildCacheMaxHeapPercent, default25, the share of the heap the automatic sizing may use. Your 10M x 96-dim set is roughly 4.5 GB, so it fits in 25% of your 24 GB heap and should be fully resident.If you re-run the 10M build on main I would expect it back around your original 2,796 s. If it is not, the number worth sending is
vectorFetchFromDocumentsfromgetStats()right after the build: it should be zero.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
tae898 commentedon Jul 26, 2026
Confirmed the mechanism, and the counter you asked for is exactly the discriminator. The 10M re-run has to wait for the benchmark host (busy ~27 h), so meanwhile I reproduced your shape on a laptop: 200,000 x 96-dim fp32,
storeVectorsInGraph: false,maxConnections: 32, 4 g heap, from-scratch build, N=3 per arm.vectorFetchFromDocumentsafter buildZero document reads on all three post-fix runs, against ~12 M before, so the cap was doing exactly what you described. Worth noting for anyone reading this later: at 200k the time gain is only about 1.3x because half the corpus (100k of 200k) still fit under the old fixed cap. The miss ratio scales with corpus-to-cap, so at my 10M tier only 1% was resident, which is consistent with the 4x I measured there and with your expectation that it returns to ~2,796 s.
Also confirms your INT8 explanation from the other direction: my INT8 10M build actually got faster across the same window (8,542 s to 5,840 s), which is what you would expect when misses are served from the index pages and never touch a document.
Full 10M fp32 re-run with
vectorFetchFromDocumentsreported goes on the machine as soon as it frees; I will post it here either way. Nice catch on retracting the eviction-policy theory before we both spent a day on it.merge main (26.8.1.dev19: ArcadeData#5412 build-cache auto-sizing)
feat: VectorIndex.get_stats() for live index counters; document vecto…
paper-icde: pin bench image to 26.8.1.dev20 (ArcadeData#5412 build-ca…
paper-icde: archive the ArcadeData#5412 build-cache A/B before dev wh…
tae898 commentedon Jul 27, 2026
10M re-run done on the benchmark host,
26.8.1.dev20(contains the auto-sizing build cache). Same cell as every previous dense number here: DEEP-10M fp32, M=32, 24 g heap, one build + 5 query passes of the 1000-query set, serial on the pinned cpuset.Build: 11,126 s -> 2,692.8 s, and
vectorFetchFromDocumentsis 0.That is 4.13x, and it lands slightly under the 2,796 s I measured before the cap was introduced, so the regression is fully retired rather than merely reduced. Your prediction was exact on both counts.
Query side, unchanged-to-better (warm passes 2-5, median [min-max]):
So nothing was traded away for the build win; if anything the tail is slightly better, plausibly the searcher pooling from #5413 which also rode this line. The cold first pass still shows the cache filling (p50 4.42 ms, p99 20.1 ms) and then never returns.
For the record, since dev wheels get pruned from PyPI: the full A/B is archived in my repo with configs and both arms, and the summary is
This closes it from my side. Thanks for chasing the real cause instead of the plausible one, and for saving me the searchCacheSize A/B that would have measured nothing.
paper-icde: track the drivers that produced published cells
paper-icde: two figures plotted pre-ArcadeData#5412 dense numbers
paper-icde: figures use the tables' canonical rule instead of their o…
claims_check: pin ranks, not just ratios (44 claims)
make_paper_figures: f4's sparse bars plotted pre-fix data
perf(#5412): index-scoped vector cache for dense search
fix(#3144): size the HNSW build cache from the corpus for document-ba…
withdraw the 16 GiB OOM claim from the figure and the runner comment
docs: the deep10m envelope was never a build-size problem