#34639: MySQL 8.0 hangs indefinitely when using the admin search with a Foreign
Key
and Annotate
--------------------------------+------------------------------------
Reporter: Nicolas Lupien | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution:
Keywords: mysql | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------
Comment (by Natalia Bidart):
Hello Simon,
I've been reading this ticket and the related tickets to try to provide a
sensible advice. The ORM in general is something I'm not familiar with.
Regarding doing (1), and following your advice in terms of that being
desirable and feasible, that sounds like a change we should pursue.
Then, I don't understand exactly what (2) involves: is it to remove the
`self.query.distinct or ` from the added if guard in the commit? I fail to
see how that is safe (in terms of the original report), since in the PR
Mariusz commented `Using distinct() with delete() sounds like a bad idea
to me.`. Are we confident that allowing `distinct().delete()` is safe?
Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/34639#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188e89fe07b-52a4978e-897b-4159-9000-d000af1e20db-000000%40eu-central-1.amazonses.com.