Skip to content

refactor: add network account cache for RpcService#2145

Closed
juan518munoz wants to merge 2 commits into
nextfrom
jmunoz-add-rpc-service-cache
Closed

refactor: add network account cache for RpcService#2145
juan518munoz wants to merge 2 commits into
nextfrom
jmunoz-add-rpc-service-cache

Conversation

@juan518munoz
Copy link
Copy Markdown
Collaborator

Followup from #2095:

We probably want to cache new account IDs that belong to network accounts in memory as a future enhancement here.

#2095 (comment)

Treating as a separate PR from #2132, because it was discussed offline with @igamigo that this fix might become reduntant with upcoming changes to the node.

Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Thanks - yes the RPC will have its own store it can query, so there is less value in caching these. Though it may still make sense to prevent the database IO.

The code itself will change quite a bit though, so I'll likely close this PR.

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.

2 participants