google-code-export / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

repeated SQL queries #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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:

Original issue reported on code.google.com by kir...@gmail.com on 5 Jun 2008 at 9:20

Attachments:

GoogleCodeExporter commented 9 years ago
Very well spotted.

Fixed in trunk, thank you!

Original comment by rwpoul...@gmail.com on 5 Jun 2008 at 11:15