getNounsWithPagination returned collectedNouns.length as totalCount, but the
type-first shard scan early-terminates at offset+limit+1 (peeks one for hasMore)
— so getNouns({ pagination: { limit: 1 } }).totalCount was the page size for any
non-empty brain. The index-rebuild gate calls exactly that, so cold starts
mis-logged "Small dataset (N items)". Now reports the authoritative O(1) noun
counter (rehydrated on init) as the unfiltered total; 8.0's peek-based hasMore is
already correct and unchanged. Filtered scans unchanged.
Regression: tests/unit/storage/getNouns-totalCount.test.ts. Full 8.0 unit suite green (1453).
|
||
|---|---|---|
| .. | ||
| blobStorage.compression-policy.test.ts | ||
| blobStorage.test.ts | ||
| getNouns-totalCount.test.ts | ||
| sharding.test.ts | ||
| storage-path-config.test.ts | ||
| vfs-mkdir-bug.test.ts | ||