rDrama/files/commands
TLSM 007f0a3f02 Optimize comment pagination in post_id, viewmore
Against a clean seeded DB, reduces `GET /post/1/` from 63 queries to
26 by removing redundancies and slow lazy-loaded queries during
top comment pagination.

Also applies eager loading to /viewmore/ with the expected reduction
from 5*(N comments) queries to ~12/request.

For testing locally, use a newly seeded DB to ensure
Comment.descendant_count is populated.

Ref: #485
2023-02-08 15:50:24 -06:00
..
__init__.py [#72] Add seed_db command 2022-06-09 01:33:58 -07:00
seed_db.py Optimize comment pagination in post_id, viewmore 2023-02-08 15:50:24 -06:00