Skip to content

Use the account public key to retrieve account metadata for better performance #548

Open
@Wayonb

Description

@Wayonb

When address is use as the account id(/metadata/account/

), rest has to resolve the address to a public key. This look up is an extra DB query before actually getting the metadata for the account which can be prevented by just sending rest the account's public key.

This is for all the account meta calls.

https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/bf0ba0a6ebc0a4d49b3d7747b48751110c0dbbb3/src/infrastructure/MetadataRepository.ts#L36

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions