Skip to content

Cascade deletes being flagged as N+1s #47

@lorinkoz

Description

@lorinkoz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions