-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Upkeep States: optimize calls to DB to scan for workIDs #11496
Upkeep States: optimize calls to DB to scan for workIDs #11496
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
Not really coding related, but what do the DB queries that we're executing look like? Do we have indexes created against workID, or whatever we're querying by? Or would that be too expensive in terms of storage? |
@ferglor There are 2 tables that gets queried:
|
@amirylm looking at the migrations, I can only see two indexes for evm.logs, one for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have we dug into the reasons for trying to fetch workID state so frequently. Can the caller be optimised?
Also, what's the effect of these rate limits on call sites?
SonarQube Quality Gate |
We have a lot of indexes on that table, maybe you're not seeing them because it was recently renamed from
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
AUTO-7399
Description
As part of load testing, it was found that while scanning the DB for state of workIDs we hit the DB too much which is causing pressure and multiple failures, which leads to a worst case where we lookup a massive amount of workIDs multiple times.
Changes
Testing