rDrama/files/routes
TLSM 4d22d9bce2
Eager load get_posts for submission_listings.
Ported in logic from upstream to use SQLAlchemy eager loading instead
of repeated queries when building a submission_listing. Adjusted
loaded relationships to include only those used on TheMotte.

Using test data from seed_db, before and after:

GET /
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default  |   83   |   0    |   0    |   0    |   83   |     72     |
|----------|--------|--------|--------|--------|--------|------------|
Total queries: 83 in 0.031s

GET /
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default  |   14   |   0    |   0    |   0    |   14   |     0      |
|----------|--------|--------|--------|--------|--------|------------|
Total queries: 14 in 0.00718s
2022-11-28 12:55:31 -05:00
..
__init__.py discord: remove 2022-11-21 12:39:27 -06:00
admin.py discord: remove 2022-11-21 12:39:27 -06:00
awards.py discord: remove 2022-11-21 12:39:27 -06:00
chat.py Remove some gimmicky r/drama features. 2022-05-21 21:43:00 -05:00
comments.py Remove unused ADMINISTRATORS content upload posts. 2022-11-09 20:37:04 -06:00
errors.py Only show /leaderboard link in settings2 menu to admins, also a more polite 403 message, also more readable HTML 2022-08-21 01:44:56 +01:00
feeds.py Change default RSS sort to 'new'. 2022-09-12 12:16:54 -05:00
front.py Eager load get_posts for submission_listings. 2022-11-28 12:55:31 -05:00
giphy.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
login.py Fix: Users with underscores in their name can't log in by underscore. 2022-11-13 18:20:24 -06:00
oauth.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
posts.py discord: remove 2022-11-21 12:39:27 -06:00
reporting.py Switch over comment reporting to use the new system 2022-07-09 06:33:41 -05:00
search.py Eager load get_posts for submission_listings. 2022-11-28 12:55:31 -05:00
settings.py discord: remove 2022-11-21 12:39:27 -06:00
static.py admins are friends not food 2022-11-07 03:56:27 -06:00
subs.py Move post/comment ID boilerplate inside getters. 2022-11-09 20:37:04 -06:00
users.py Eager load get_posts for submission_listings. 2022-11-28 12:55:31 -05:00
votes.py Remove vestigial user ID special cases. 2022-11-09 20:37:04 -06:00