Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use autocomplete fields in the admincom controlpanel to speed up loading times #597
This ticket is for the control panel UI used by admincom, not the customer facing UI.
Basically any page in the admin control panel that loads dropdowns with thousands of objects (networks, organizations) in them etc. is currently loading abysmally slow. Switching those dropdowns to autocomplete dropdowns will dramatically increase loading time on those pages.
We already use grappelli which comes with an autocomplete feature out of the box - so setting that up is mostly a matter of going through all the admin views and doing so.
As an added benefit, having those fields be autocomplete fields will also improve usability as dealing with lists of 16000 objects isn't really ideal.
@vegu I think it depends on the cause of the slowness. Is it getting all the possible values from the server and passing them to the client? Or does getting the full list happen quickly, and the client finding the correct value in the dropdown is the slow part?
If it's the former, I think we would want a type ahead that pushes the search term and the server returns a subset of the objects that match the search string (case insensitively, anywhere in the name).
Either way +1 we should do something here - the # of possible values has got to be way too big to select by scrolling through a dropdown.
@mcmanuss8 I meant the former, so actual page load time - basically any relationship
As i mentioned we already have grappelli installed which is an enhancement add-on that aims to improve the default django admin UI. It comes with an autocomplete feature that can be turned on for such fields and which behaves as you described in your suggestion.