Skip to content

Conversation

@dimitrovmaksim
Copy link
Member

Resolves #5513

What this PR does:

Introduces an environment variable GRAPH_STORE_DISABLE_CALL_CACHE that allows disabling the store call cache. The main motivation is to provide indexers, who use locally hosted RPC nodes, with an option to bypass the graph-node call cache.

@dimitrovmaksim dimitrovmaksim self-assigned this Nov 12, 2025
@dimitrovmaksim dimitrovmaksim force-pushed the feat/add-option-to-disable-call-cache branch from b48728d to 5d80ef1 Compare November 12, 2025 18:32
@dimitrovmaksim dimitrovmaksim force-pushed the feat/add-option-to-disable-call-cache branch from 5d80ef1 to f45feb5 Compare December 3, 2025 11:46
@dimitrovmaksim dimitrovmaksim force-pushed the feat/add-option-to-disable-call-cache branch from 14c8d6c to e402cf9 Compare December 16, 2025 21:46
@dimitrovmaksim dimitrovmaksim force-pushed the feat/add-option-to-disable-call-cache branch from e402cf9 to c42495c Compare January 6, 2026 11:52
@dimitrovmaksim dimitrovmaksim requested a review from lutter January 6, 2026 12:26
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; needs just a small touch-up for the docs

- `GRAPH_STORE_DISABLE_CALL_CACHE`: Disables the store call cache entirely. Graph node will skip writing and reading from the
call cache. The buffered block call cache will still be enabled. This option may be useful
for indexers who are running their own RPC nodes. Disabling the store call cache may have
significant performance impact. (default: false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by The buffered block call cache - do you mean just the block cache?

Also, I would reword 'Disabling the store call cache may have significant performance impact' to something like 'Disabling the store call cache may have significant performance impact; the precise impact depends on how long an eth_call takes on average compared to how long a database lookup of a cached call result takes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Make call cache a config option for Indexers with locally hosted RPC nodes

2 participants