The JS metadata index served `ne`, `exists:false`, and `missing:true` by materializing the ENTIRE id universe as an array of UUID strings, building a Set of the excluded ids, and filtering — O(N) heap and two full passes on the open-core path, on the most common shape (`deleted !== true`). Compute the complement as a roaring-bitmap difference over the int-id universe instead (`complementIds(excludeInts)` = universe \ exclude), converting only the result back to UUIDs. The exclude set is small (the matching value), so this avoids the full-corpus string materialization entirely. Behaviour is unchanged, including the load-bearing soft-delete semantic that `field !== value` includes entities with no such field. New focused tests pin `ne`/`exists:false`/ `missing:true`/`exists:true` result sets and that the complement reflects deletes. Full gate green: unit 1520, integration 607. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| benchmarks | ||
| comprehensive | ||
| configs | ||
| fixtures/import | ||
| helpers | ||
| integration | ||
| integrations | ||
| performance | ||
| regression | ||
| scripts | ||
| transaction | ||
| unit | ||
| vfs | ||
| brainy-3.test.ts | ||
| critical-neural-validation.test.ts | ||
| critical-performance-benchmark.test.ts | ||
| model-loading.test.ts | ||
| package-size-breakdown.test.ts | ||
| package-size-limit.test.ts | ||
| setup-integration.ts | ||
| setup-semantic.ts | ||
| setup-unit.ts | ||
| setup.ts | ||
| streaming-pipeline.test.ts | ||
| type-utils.test.ts | ||