title: The best way to optimize an API returning a large list of records in django rest framework
body: <p>I have an endpoint returning a list of 8000 records I have integrated it with an angular material application but the issue is that the list on the client-side is taking some time to load. Which options or suggestions can I utilize to optimize the loading of the records faster?</p>
  
  <p><strong>view</strong></p>
  
  <pre><code>class PermitListAPIView(generics.ListAPIView):
  
      permission_classes = [AllowAny]
  
      def get(self,request,format=None):
          qs = IssuedPermit.objects.all()
          serializer = IssuedPermitSerializer(qs, many=True)
          # list_ = [json.loads(x.serialize_business()) for x in qs]
  
          return Response(data={"success": True, "msg": "success", "data":serializer.data}) 
  </code></pre>