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

Limit number of keys to process simultaneously #92

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

christophercampbell
Copy link
Contributor

We've found that the unprocessed keys table can fill up fairly fast (depending on activity), and the unprocessed batch key handler selects all keys in that table every time it processes them.

In a production environment, we found the unprocessed table >15k keys, and the processor tries to insert all of them at once, failing due to timeout, and not accumulating resolved data.

This PR adds a limit (of 100) to the unprocessed sql query. This allows the synchronization to proceed as expected.

Copy link

@christophercampbell christophercampbell merged commit 30f1bf2 into main Jun 21, 2024
8 of 9 checks passed
@christophercampbell christophercampbell deleted the ccampbell/limit-unprocessed-query branch June 21, 2024 14:28
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