rDrama/files/helpers
TLSM afe209d5d8
Eager load comments for post rendering.
GET /post/1/clever-unique-post-title-number-0
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default  |  942   |   0    |   1    |   0    |  943   |    921     |
|----------|--------|--------|--------|--------|--------|------------|
Total queries: 943 in 0.377s # request time in browser 17249ms

GET /post/1/clever-unique-post-title-number-0
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default  |   58   |   0    |   1    |   0    |   59   |     35     |
|----------|--------|--------|--------|--------|--------|------------|
Total queries: 59 in 0.0423s # request time in browser 544ms

Also, fixes seed_db not populating top_comment_id on generated
comments. If you want to test locally with seed_db test data, you need
to reseed.
2022-11-28 17:47:54 -05:00
..
alerts.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
assetcache.py assetcache: add interface for non-Jinja consumers. 2022-08-30 16:23:09 -04:00
const.py themes: remove /r/Drama theme ("classic" and "classic_dark") 2022-11-21 06:13:12 -06:00
contentsorting.py Eager load comments for post rendering. 2022-11-28 17:47:54 -05:00
get.py Eager load comments for post rendering. 2022-11-28 17:47:54 -05:00
images.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
jinja2.py themes: remove /r/Drama theme ("classic" and "classic_dark") 2022-11-21 06:13:12 -06:00
lazy.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
sanitize.py Fix some deprecations and factor out a helper function (#387) 2022-10-27 22:15:48 -05:00
security.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
strings.py Port get.py improvements from upstream. 2022-11-28 12:36:04 -05:00
wrappers.py Add active user counter logic; add to admin tools. 2022-09-05 00:44:13 -05:00