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

Cascade deletes being flagged as N+1s #47

Open
lorinkoz opened this issue Dec 15, 2022 · 0 comments
Open

Cascade deletes being flagged as N+1s #47

lorinkoz opened this issue Dec 15, 2022 · 0 comments

Comments

@lorinkoz
Copy link

I don't know if this is a bug or a feature.

Using:

  • Django 4.1.2
  • Nplusone 1.0.0

If I delete a model that generates cascade deletions, those are displayed in the console as N+1s. For instance, in the classic Book -> Author example, if I delete an Author, the package flags N+1 like this:

Potential n+1 query detected on Book.author

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

No branches or pull requests

1 participant