Re: Hidden variable lookup failures and template performance

2007-01-17 Thread akaihola
Karen, Thanks for opening the ticket. Nice to see a patch as well. --~--~-~--~~~---~--~~ 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 unsubs

Re: Hidden variable lookup failures and template performance

2007-01-05 Thread Karen
Bah, I feel guilty. I ran into this several months ago and reported it here, got some feedback that I should open an issue on it but never followed up. So now I have: http://code.djangoproject.com/ticket/3235 The suggestions you make for django user's code to avoid the performance hit are val

Hidden variable lookup failures and template performance

2007-01-05 Thread akaihola
Here's an issue to be aware of wrt template performance: I noticed that one of my templates was getting really slow. I profiled it and it seemed to spend lots of time calling the __str__ method of one of my models. The method contains a query for a related object, which slowed things down quite