justcool393
340644a3ae
default
2023-02-17 00:49:04 -06:00
justcool393
31f273ca32
Pins: fix infinite recursion
2023-02-16 18:46:43 -06:00
justcool393
09308f17d1
Add keyword argument pins to sort_comment_results
2023-02-16 18:17:21 -06:00
justcool393
9ba4f1a8af
Remove unnecessary DESC constant
2023-02-16 18:02:26 -06:00
justcool393
5f73302b28
Sorting: add comments sort for comments and constantify sorts
2023-02-16 17:52:43 -06:00
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
TLSM
5aaef144cf
Deduplicate post/comment sorting & time filtering.
...
Ported in from upstream with adjustments for TheMotte, most notably
universal default to 'new' and fixes to 'hot'. Lumped into this PR
because eager comment loading uses it.
2022-11-28 14:33:24 -05:00