refactor: use listByType for schema list, upgrade json-cas to 0.2.0 #333
Reference in New Issue
Block a user
Delete Branch "refactor/use-list-by-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replace full CAS scan in
schema listwithstore.listByType(metaHash)— O(1) index lookup.Changes
@uncaged/json-cas*deps to^0.2.0cas.ts:store.list()→store.listByType(metaHash), remove redundant type checkRef
Refs #328
LGTM ✅ full scan → listByType 索引查询,干净。