Admin Performance Boost
Admin Performance Boost

Previously, the tree editor would perform O(n) - which was slow in production and unusable with DEBUG=True with a test database over 50+ pages (I have 2500). This uses .select_related() and .only("id", "parent") to reduce that to one query. A second, better rewrite would use .values_list() to avoid paying the memory tax of loading thousands of complex objects.
feincms/feincms,joshuajonah/feincms,joshuajonah/feincms,pjdelport/feincms,mjl/feincms,matthiask/django-content-editor,nickburlett/feincms,hgrimelid/feincms,joshuajonah/feincms,michaelkuty/feincms,matthiask/feincms2-content,nickburlett/feincms,nickburlett/feincms,pjdelport/feincms,matthiask/django-content-editor,michaelkuty/feincms,michaelkuty/feincms,hgrimelid/feincms,pjdelport/feincms,joshuajonah/feincms,hgrimelid/feincms,michaelkuty/feincms,matthiask/django-content-editor,nickburlett/feincms,feincms/feincms,feincms/feincms,mjl/feincms,mjl/feincms,matthiask/feincms2-content,matthiask/django-content-editor,matthiask/feincms2-content