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

Improve efficiency of ORM call #1975

Conversation

code-review-doctor
Copy link
Contributor

using if queryset.exists() is more efficient than checking if queryset.count() > 0 read more

I found this problem during auditing your codebase. Read the full report

@jerivas jerivas merged commit 5259e1f into stephenmcd:master May 27, 2021
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.0.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants