jmcarp / nplusone

Auto-detecting the n+1 queries problem in Python
MIT License
996 stars 47 forks source link

Cascade deletes being flagged as N+1s #47

Open lorinkoz opened 1 year ago

lorinkoz commented 1 year ago

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

Using:

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