Re:ORMs Are Backwards
by jannes on Wednesday September 04, 2019 @03:53AM
(#20874934)
Even for "complex reporting" you can still use ORMs if you save your SQL query as a VIEW in the database. Then you use ORM for reading the output.
[ Parent
| on HN ]
Or just use the ORM directly with a raw query, on a model that represents the results: https://docs.djangoproject.com/en/2.2/topics/db/sql/