Eager load GET /comments ("All Comments")
Before vs after: GET /comments |----------|--------|--------|--------|--------|--------|------------| | Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates | |----------|--------|--------|--------|--------|--------|------------| | default | 167 | 0 | 0 | 0 | 167 | 154 | |----------|--------|--------|--------|--------|--------|------------| GET /comments |----------|--------|--------|--------|--------|--------|------------| | Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates | |----------|--------|--------|--------|--------|--------|------------| | default | 13 | 0 | 0 | 0 | 13 | 0 | |----------|--------|--------|--------|--------|--------|------------|
This commit is contained in:
parent
4f8cce1093
commit
9ade35d22f
2 changed files with 27 additions and 19 deletions
|
@ -152,7 +152,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if c.parent_comment and c.parent_comment.sentto %}
|
||||
{% if not standalone and c.parent_comment and c.parent_comment.sentto %}
|
||||
{% set isreply = True %}
|
||||
{% else %}
|
||||
{% set isreply = False %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue