My model has two Foreign Keys. Each FK has 4000 entries or more. In admin.py I use filter_horizontal for those FK.
I noticed that JS widget is slow both on first render of admin page (add item) and on every selection of an FK item inside the widget. I takes 5 seconds AFTER admin page already loads for JS to render widget. In this time browser is unresponsive. Selection of an item takes even longer. I've tested this on various browsers and systems. I'm am fairly confident that the number of FK items is a major factor in slowing down the render of the widget because I tried deleting FK items and browser was starting to show improvements in speed. When the number of FK items dropped under 1000 admin site become much faster (and actually usable). I've also completely removed filter_horizontal just to be sure nothing is wrong with admin on a general and all seemed good and super fast. So, I recon, some revision of JS for filter in admin is needed or sth. Thanks for any thoughts on that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---