My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 25: repeated SQL queries
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jun 2008


 
Reported by kir...@gmail.com, Jun 5, 2008
In the forum_list.html tempalate 'forum.forum_latest_post' function is 
called 4 times, thus you get 4 identical SQL queries instead of one. This 
can be optimized using {% with... %} template funciton.

Also the same issue with thread_list.html. See the patch:
with.diff
3.4 KB   View   Download
Jun 5, 2008
Project Member #1 rwpoul...@gmail.com
Very well spotted.

Fixed in trunk, thank you!
Status: Fixed

Powered by Google Project Hosting