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

indexer: Cache scanner table #960

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

crozzy
Copy link
Contributor

@crozzy crozzy commented Jun 5, 2023

During the indexing cycle many operations try to read information from the scanner table, this can occasionally lead to resource contention depending on the DB. This reads the table into memory when the indexer store is instanciated and uses when asked for scanner info.

@crozzy crozzy force-pushed the cached-scanners branch 2 times, most recently from 8620166 to 33f440f Compare June 5, 2023 17:43
During the indexing cycle many operations try to read information
from the scanner table, this can occasionally lead to resource
contention depending on the DB. This reads the table into memory when
the indexer store is instanciated and uses when asked for scanner info.

Signed-off-by: crozzy <[email protected]>
Remove the arbitrary timeouts in the datastore package and rely on the
passed context to timeout.

Signed-off-by: crozzy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant