You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time we process a block, we check if the subgraph has reached the chain head and can be considered synced. Right now this requires a roundtrip to the DB to check the chain head, here:
This overhead is unnecessary, since if a subgraph checks the chain head once and sees that it is very far, there is no need to check again on every block processed.
The text was updated successfully, but these errors were encountered:
The runner should know whether a subgraph is synced and only ask the store for that when it starts a subgraph; after that, it already is in control of the synced status and keep that in memory.
Every time we process a block, we check if the subgraph has reached the chain head and can be considered synced. Right now this requires a roundtrip to the DB to check the chain head, here:
graph-node/core/src/subgraph/runner.rs
Line 753 in fe96516
This overhead is unnecessary, since if a subgraph checks the chain head once and sees that it is very far, there is no need to check again on every block processed.
The text was updated successfully, but these errors were encountered: