subql icon indicating copy to clipboard operation
subql copied to clipboard

Skip dictionary when difference between lastProcessedHeight and latestHeight is small

Open ianhe8x opened this issue 1 year ago • 1 comments

Prerequisites

  • [ ] Are you running the latest version(s)?
  • [ ] Have you searched the documentation for your issue?
  • [ ] Did you search for an existing issue or pull request?

Description

We want to reduce unnecessary dict queries

Details

Skip dictionary when difference between lastProcessedHeight and latestHeight is small. (mandatory value or use batch size)

Local Environment: [You can get this information from executing subql version.] Query Version: [What is the version of the query service?] Indexer Version: [What is the version of the indexer service?] Network Details:

  • [Network]
  • [Block height, a block height where the issue is happening]
  • [Dictionary endpoint, if used]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Example project: [A link to a minimal example that can reproduce the issue]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Any other information

Is there any other information you would like to add?

ianhe8x avatar Aug 21 '23 03:08 ianhe8x

This has been updated to match the last block, but we can be even looser and stop using the dictionary if its within a certain number of blocks

stwiname avatar Sep 22 '23 03:09 stwiname