from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    """Shared default pager for list endpoints without a bespoke page size.

    PERF-001: `max_page_size` was 500, which let a client opt back into an
    effectively unbounded response and defeated the point of paginating. 200 is
    high enough for the bulk-fetch call sites that exist today; anything needing
    more rows wants an export job, not a bigger page.
    """
    page_size = 100
    page_size_query_param = "page_size"
    max_page_size = 200
