On Feb 26, 11:45 am, sixpackistan <robma...@gmail.com> wrote: > Anybody have any ideas on this? > I am running django 1.1.1 using mod_python on apache 2.2. > We have a large database of items (defined in the model as "item") > that are searchable by serial number (which is indexed in the > database). On the public site, one can enter in a serial number and > the appropriate item is displayed for edit quite fast. On the admin > site, if one selects an item from the list display it takes almost a > minute for the same item to come up for edit. Does the django admin > site use a different API or methodology for retrieving data? Any > ideas why the admin site would be so much slower when it is displaying > the same data as the public site?
If you are displaying inlines, that also have a Foreign Key reference to another object, that is almost certainly the reason. Try having a look at the django-debug-toolbar, or the queries generated in your DBMS (or try devserver) to find out where the slowdown is. You can use raw_id_fields in the admin to improve performance significantly. Matt. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.