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

[5.x] Fix slowdown caused by status PR #9928

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Conversation

jasonvarga
Copy link
Member

We noticed that #9317 actually made things a bit slower.

When you query by collections, we would a status clause for each query you specified.

However if you don't query for a collection, we would add a status query for all collections. An example of that is if you query entries by only ID. These add up the more collections you have.

This PR improves on that by if you don't query a collection and you query by ids, we automatically query the collections for you. This results on those status nested wheres only being added for appropriate collections.

@jasonvarga jasonvarga merged commit afec6d8 into master Apr 19, 2024
31 checks passed
@jasonvarga jasonvarga deleted the fix-slowdown-from-status-pr branch April 19, 2024 20:42
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