3 ms·
DRF falls apart very quickly when you get away from the "simple CRUD" use cases. The Serializer mechanism causes N+1 query behavior by default with non-trivial
by seabrookmx 3y ago
DRF falls apart very quickly when you get away from the "simple CRUD" use cases.
The Serializer mechanism causes N+1 query behavior by default with non-trivial models. This is exacerbated by the fact that they all run in sequence because there's no async support.
It's documentation is also pretty poor, IMO.
> There’s a vibe, or assumption around Ninja that it’s “newer”, or “like FastAPI”, or “the way forward”, none of which are objective benefits per se.
The creator of DRF also created starlette, which underpins FastAPI. If DRF works for you cool, but that doesn't mean the community hasn't moved on.
- oflannabhra 3y agoThis is my expo with DRF exactly. If you want to serve ORM models over REST, it’s amazing and fast. If you have complex business logic it becomes a nightmare.