Closed agalazis closed 3 years ago
After further investigation it seems that the issue also exists in normal inlines not related to this library but maybe we can keep this open to communicate findings/thoughts since optimization would be useful especially for this library.
Closing since I realized it that base framework's implementation is a blocker You can use this ticket to track progress: https://code.djangoproject.com/ticket/32587
Mainly I don't know what the suggested route is for prefetching. What I do is adding all nested prefetching on ultimate parent admin. This seems not to work. Having a look at old issues some people tried to do it in nested inline formsets.
https://github.com/theatlantic/django-nested-admin/issues/76
Having in mind that nested admins can cause extra queries official guidance on optimization could be a first class citizen in the docs.