Browse Source
- Add request-level user bookmark memoization in BookmarkStatusSerializer to eliminate redundant queries across all lists - Optimize BookReferenceSyncView and BookReference.authors caching (reduced queries from 185 to 10) - Add multi-level prefetch_related for references and images in HadisMainListView (reduced queries from 109 to 6) - Add incremental sync support (updated_after/since) in HadisSyncView - Add select_related for language in BookListView (reduced queries from 35 to 18) - Annotate episode count and cache effective_thumbnail in podcast and video playlist views (reduced queries from 22/17 to 4) - Prefetch categories with annotated article counts in ArticleListAPIView (reduced queries from 41 to 3) - Scale Gunicorn workers/threads to 4w/4t (16 concurrency) with gthread in docker-compose.prod.ymlmaster
14 changed files with 105 additions and 21 deletions
Loading…
Reference in new issue