600 karma · joined November 6, 2014
[0] https://www.washingtonpost.com/world/2025/12/17/serbia-trump...
[0] https://www.gov.pl/web/srbija/poljski-bizoni-u-nacionalnom-p...
Not arguing here about types and Pydantic being faster than the built in ModelSerializers. However, for serializer speed improvements and performance in DRF I would advise dropping ModelSerializers and either going for Serializers or plain dict. Haki Benita has a beautiful article on that [0]. I was able to accomplish sub 200 response times on a fairly large response from tables that had tens of millions of records.
I think you have no objective reason other than your styling and rather personal preference for function based views?
If you don’t mind me asking - what country do you reside in?
- Ethan Chlebowski https://www.youtube.com/@EthanChlebowski
- Adam Ragusea https://www.youtube.com/@aragusea
I tried numerous recipes from both and learned quite a bit about the technique as well.