Outcome
Reduce resident-account lookup overhead in AccountsDB and determine whether shared load metrics materially contribute to contention observed around ensure_accounts.
Scope
- Add a mode-only AccountsDB lookup for callers that need
Option<AccountMode>. It should read volatile mode without cloning the OwnedAccount and read persisted mode without materializing a full account, while retaining the concurrent-publish sequence check.
Acceptance criteria
Outcome
Reduce resident-account lookup overhead in AccountsDB and determine whether shared load metrics materially contribute to contention observed around
ensure_accounts.Scope
Option<AccountMode>. It should read volatile mode without cloning theOwnedAccountand read persisted mode without materializing a full account, while retaining the concurrent-publish sequence check.Acceptance criteria