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

fix(server): increase person search limit #12619

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Sep 12, 2024

Increase the person search results from 20 to 500. In the future we can look at making this endpoint paginated if needed.

Fixes #8822

Copy link
Contributor

@mertalev mertalev left a comment

Choose a reason for hiding this comment

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

  1. On web, maximumLengthSearchPeople is still fixed at 20.
  2. Web should only start searching at the second character to ease server load; it's likely to get 500 results with just one character.
  3. Not a blocker for this PR, but the group by / count likely makes this much less responsive for large libraries. It'd be snappy at any library size if it didn't do that.

@jrasm91
Copy link
Contributor Author

jrasm91 commented Sep 13, 2024

@mertalev - thanks for the hint about (1), which I've changed to 1,000 now (aligns with the server). I've skipped (2) as it was not an easy fix given the current state of the web components, but I have implemented (3) which should at least make (2) less of an issue.

Copy link
Contributor

@mertalev mertalev left a comment

Choose a reason for hiding this comment

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

Nice! Without the count stuff it's fast enough that (2) doesn't really matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

face search only showing 20 results.
3 participants