Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for indexer to iterate backwards from chain head #795

Open
deekerno opened this issue Apr 24, 2023 · 1 comment
Open

Allow for indexer to iterate backwards from chain head #795

deekerno opened this issue Apr 24, 2023 · 1 comment

Comments

@deekerno
Copy link
Contributor

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.

@0xmovses
Copy link
Contributor

This issue is related to #796 . I think it would be prudent to get #796 merged first then move onto this.

@0xmovses 0xmovses self-assigned this May 1, 2023
@ra0x3 ra0x3 removed devx labels Aug 8, 2023
@ra0x3 ra0x3 assigned ra0x3 and unassigned ra0x3 Aug 8, 2023
@ra0x3 ra0x3 added the P: Medium label Aug 8, 2023
@ra0x3 ra0x3 assigned ra0x3 and unassigned ra0x3 Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants