CodeChain-io / CodeChain-io/codechain-indexer

Utilize from/lastTimestamp for indexing pending transactions

Open
#166 0 comments 0 reactions 1 assignee Claimed by @cubistplay View on GitHub
optimization
Dominant language
TypeScript
Stars
21
Forks
15
PR merge metrics
No merged PRs in 30d

Description

The current implementation does:

- Retrieve all pending transactions through an RPC call
- Compare it to the already indexed pending transactions
- Delete the indexed pending transactions if they aren't found on the current ones.
- Insert the newly found pending transactions

It makes the indexer slow when the number of pending transactions is big.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.