Re:ORMs Are Backwards
by Izkata on Wednesday September 04, 2019 @02:13PM
(#20879900)
> If you use the Django ORM like you would concatenate raw SQL, then it ain't gonna be pretty...
Depends on what exactly you mean here. The Django ORM fully supports some things you wouldn't initially expect if you hadn't seen it before, like passing one queryset into the filter args of another. It'll actually compose the queries and run it once on the database, instead of running the first and passing the result into the second.
Depends on what exactly you mean here. The Django ORM fully supports some things you wouldn't initially expect if you hadn't seen it before, like passing one queryset into the filter args of another. It'll actually compose the queries and run it once on the database, instead of running the first and passing the result into the second.