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:
TLSM 2023-02-09 07:45:47 -05:00 committed by Ben Rog-Wilhelm
parent 4f8cce1093
commit 9ade35d22f
2 changed files with 27 additions and 19 deletions

View file

@ -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 %}