I'm using Serializers to transform primary keys into model instances with DRF by using the PrimaryKeyRelatedField.
However, when I run the is_valid() method on the serializers to get the validated data for every primary key a query is produced by performing a get on the provided queryset.
With large numbers this becomes very inefficient. Is there a way to trigger a .filter() on the queryset or a better way of doing this? I know I can just do a filter on the queryset myself but I like the structured way of doing this via Serializers.