rDrama/files/classes
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
alts.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
award.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
badges.py Eager load get_posts for submission_listings. 2022-11-28 12:55:31 -05:00
clients.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
comment.py Implement #380: remove signatures feature. 2022-11-09 20:37:04 -06:00
domains.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
exiles.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
flags.py Fix migrations for real this time 2022-07-09 06:33:41 -05:00
follows.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
marsey.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
mod.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
mod_logs.py remove "meme admin" functionality 2022-11-07 03:33:56 -06:00
notifications.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
saves.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
sub.py Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE. 2022-07-31 18:53:18 -05:00
sub_block.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
submission.py Implement #380: remove signatures feature. 2022-11-09 20:37:04 -06:00
subscriptions.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
user.py discord: remove 2022-11-21 12:39:27 -06:00
userblock.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
usernotes.py Adding usernotes. 2022-05-16 11:53:24 -05:00
views.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
votes.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00