honzakral/django-threadedcomments

Consider using select_related()

Opened this issue · 0 comments

Hi. Imagine a list of comments with a big number of instances. In such case, there is additional query required for each comment for a user field.

It can be optimised by select_related('user') approach.