Skip to content

Indexers speed-ups #64

Open
Open
@dr-orlovsky

Description

@dr-orlovsky

The current logic of indexers is implemented in a sub-optimal (from the performance perspective) fashion: many requests for txes are repeated, significantly increasing validation time for the large wallet histories.

Specifically, things which can be improved:

  • caching all transactions returned by Electrum get_history and using them in resolving previous transaction inputs instead of always querying get_transaction method
  • adding transactions returned as a previous inputs for the cache, which will prevent repeated calls retrieving the same transactions later (if a tx have multiple outputs it can be reported as previous transaction for each of the outputs)
  • complete implementation of the update method which can leverage the knowledge of past wallet transaction to significantly reduce the number of requests to the indexer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions