#13871: contrib.admin:list_editable - ForeignKey performance is O(m*n) -------------------------------------+------------------------------------- Reporter: chadc | Owner: nobody Type: New | Status: new feature | Component: contrib.admin Milestone: | Severity: Normal Version: 1.2 | Keywords: list_editable, Resolution: | admin, ForeignKey, admin efficiency Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 -------------------------------------+------------------------------------- Changes (by uriel.bertoche):
* easy: => 0 Comment: It also happens when you try to add a object that has a foreign key with too many possible values. Like, if I have a table users, with 700 entries, and a models that has users as a foreign key, when I try adding an entry for this models, it will make +700 sql queries to fill the select. Is there any fix for this yet? -- Ticket URL: <http://code.djangoproject.com/ticket/13871#comment:5> Django <http://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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.