Skip to content

Reduce resident account lookup overhead #123

Description

@bmuddha

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

  • AccountsDB exposes one mode-only lookup that handles volatile, persisted, absent, and concurrently published accounts correctly.
  • The mode-only path avoids cloning or materializing a complete account solely to inspect its mode.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

techdebtShortcut was taken, that needs to be addressed in the future

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions