codechain-indexer icon indicating copy to clipboard operation
codechain-indexer copied to clipboard

Utilize from/lastTimestamp for indexing pending transactions

Open joojis opened this issue 5 years ago • 0 comments

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.

joojis avatar Mar 18 '19 05:03 joojis