Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: avoid calling the db on every constraint submission #13

Open
merklefruit opened this issue Oct 16, 2024 · 0 comments
Open

perf: avoid calling the db on every constraint submission #13

merklefruit opened this issue Oct 16, 2024 · 0 comments

Comments

@merklefruit
Copy link

merklefruit commented Oct 16, 2024

As outlined here:

// Perf: can we avoid calling the db?
let maybe_validator_pubkey = api.db.get_proposer_duties().await?.iter().find_map(|d| {

it would be great to cache the proposer duties in the constraints API as to not fetch from the db every time a new
submission comes in.

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

No branches or pull requests

1 participant