Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Allow for indexer to iterate backwards from chain head #795

@deekerno

Description

@deekerno

Currently, all indexers start from the genesis block and iterate forwards to the head of the chain. Once completed, this provides a complete history of a contract as it pertains to one's indexer. This is helpful when the recency of indexed data is the same across time or having the most recent data right now isn't of the highest importance; an example of this could be indexing data for historical audits.

However, there may be use cases in which recent indexed data is more important than older historical data; for example, a dApp may want to index the most recent data first as their users are more likely to query for information in the last few blocks rather than the first few blocks of the chain.

This could be as simple as adding something akin to a direction field to the manifest and then adjusting the query to the FuelGqlClient accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions