refactor(data): per-doc anchored reads over the virtual wallet
Read each by-need entity document with its own anchored query (bounded to the current account's virtual wallet), never an anchorless scan of the physical shared wallet. The 75s ORM hang stays gone; a non-empty PHYSICAL wallet now costs nothing (never scanned). Removed the throwaway anchorless-union probe. Known remaining (test-infra, not the product): the @data suite still times out because THIS test account's VIRTUAL wallet is bloated (hundreds of docs accumulated across this session's many runs) → per-doc reads are O(my docs), and `clearWallet` still enumerates all accounts. Needs per-scenario test isolation (fresh/small virtual wallet) + a virtual-wallet-scoped clear to validate green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Doc-debt — data-layer
|
||||
|
||||
> Presence of a block = doc to update. Processed → delete the block; no blocks left → delete this file.
|
||||
> One block = one "big change": `why` + `files` + `verify` (leaves to review).
|
||||
|
||||
## Raw markers (consolidate into blocks, then delete)
|
||||
- TOUCHED src/shared/data/readEntities.ts @2026-07-05 (session 0b064e8b-1717-421f-a20e-a4318ad217b1)
|
||||
- TOUCHED src/shared/context/FestipodDataContext.tsx @2026-07-05 (session 0b064e8b-1717-421f-a20e-a4318ad217b1)
|
||||
Reference in New Issue
Block a user