refactor: use listByType for schema list, upgrade json-cas to 0.2.0 #333

Merged
xiaomo merged 1 commits from refactor/use-list-by-type into main 2026-05-18 14:18:17 +00:00
Owner

What

Replace full CAS scan in schema list with store.listByType(metaHash) — O(1) index lookup.

Changes

  • Upgrade @uncaged/json-cas* deps to ^0.2.0
  • cas.ts: store.list()store.listByType(metaHash), remove redundant type check

Ref

Refs #328

## What Replace full CAS scan in `schema list` with `store.listByType(metaHash)` — O(1) index lookup. ## Changes - Upgrade `@uncaged/json-cas*` deps to `^0.2.0` - `cas.ts`: `store.list()` → `store.listByType(metaHash)`, remove redundant type check ## Ref Refs #328
xiaoju added 1 commit 2026-05-18 14:16:28 +00:00
Replace O(n) full CAS scan with O(1) type-index lookup.

Refs #328
xiaomo approved these changes 2026-05-18 14:18:16 +00:00
xiaomo left a comment
Owner

LGTM full scan → listByType 索引查询,干净。

LGTM ✅ full scan → listByType 索引查询,干净。
xiaomo merged commit 13789e2c66 into main 2026-05-18 14:18:17 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#333