Taming DRF List Views: Pagination Limits, Prefetching, and Tight Serializers
List endpoints that are fast with ten rows become slow in production. Cap page size, prefetch related data in get_queryset, and whitelist serializer fields to keep responses lean and predictable.