Skip to content

stx_supply and stx account balance endpoint perf issues #2095

@zone117x

Description

@zone117x

The query used for extended/v1/stx_supply is getting expensive and taking several seconds (or timing out) when not getting a cache-hit.

We now have an ft balance table which can calculate the total STX supply near-instantly, which we should switch to using.

EDIT:
Account stx balance endpoints are also starting to have perf issues due to this same underlying problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions