Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Old is a harsh word, maybe mature would be a better fit, not everything new and shiny is gold, and yet not everything old sucks.

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?

[0] - https://hakibenita.com/django-rest-framework-slow




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: