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 projects queries #495

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Reduce projects queries #495

merged 1 commit into from
Feb 19, 2025

Conversation

pleary
Copy link
Member

@pleary pleary commented Feb 19, 2025

For observation requests that include the include_new_projects parameter:

  • do not attempt to look up collection projects if the observer has not joined any
  • do not attempt to look up umbrella projects if the observer has not joined any

Few observers have joined collection or umbrella projects. We only display non-traditional projects the user has joined. This change is to perform a membership query before attempting the more complicated observation inclusion query, and to skip the more complicated query if we know the results are not relevant to the given observation/observer.

@pleary pleary merged commit 5956023 into main Feb 19, 2025
7 checks passed
@pleary pleary deleted the reduce-projects-queries branch February 19, 2025 21:40
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.

1 participant