Browse Source
fix(hadis): paginate book editions endpoint and remove N+1 queries
fix(hadis): paginate book editions endpoint and remove N+1 queries
- Use OptionalPagination on AdminBookEditionViewSet (page/page_size), keep full list when not requested - Extend edition search to title, publisher, year and connected book titles - Add select_related/prefetch_related and use prefetched data in AdminBookEditionSerializer (54 -> 6 queries per page) - Add books_detail field; fix editors update logic being nested under wrong condition - Fallback book_reference to first connected book when missingmaster
2 changed files with 3974 additions and 3964 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue