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

Reduce memory overhead of searches #6471

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TipzCM
Copy link
Collaborator

@TipzCM TipzCM commented Nov 14, 2024

closes #6469

Copy link

Formatting check succeeded!

Copy link
Contributor

@michaelabuckley michaelabuckley left a comment

Choose a reason for hiding this comment

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

Nice. This isn't as fussy as I feared.

// otherwise, we let the de-duplication happen in the database
// (see createChunkedQueryNormalSearch above), becuase it saves
// memory that way
myPidSet.add(next);
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: add some javadoc to the myPidSet field declaration explaining these two usages: skipping prior results, and de-dupe of res_id from the new sql.

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.

Searches for large amounts of resources can use up a lot of in-memory resources
2 participants