codechain-indexer
codechain-indexer copied to clipboard
Utilize from/lastTimestamp for indexing pending transactions
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.