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

how are manysearch results ordered, and can we threshold num results returned? #257

Open
bluegenes opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@bluegenes
Copy link
Contributor

bluegenes commented Feb 28, 2024

Had a question on whether manysearch results are ordered by best hit, and whether we could add a threshold parameter to return only the top n results.

I think:

We would need sorted results in order to implement a threshold number of hits to return.

The was brought up in the context of speeding up search and downstream processing. Since we need to check all database entries in order to build a sorted list, I think any potential benefit would be small -- would only reduce writing (fewer results to write) and very slightly speed up downstream processing (fewer results to read)?

@ctb
Copy link
Collaborator

ctb commented Feb 28, 2024

this way lies madness.

strong opinion: since it's (mostly) not computationally challenging to load the results in after, leave it as-is and have all limits on number of results applied AFTER.

(old bad design decisions => let's avoid that mess in the future 😆 )

@bluegenes bluegenes added the fyi label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants