|
|
|
|
|
by andrewstuart
660 days ago
|
|
I thought Django’s ORM was awesome (seriously). And yet using it was such a shit experience I switched permanently to writing SQL. I see zero advantage to using an ORM over SQL and in fact see many downsides. Don’t use an ORM just learn SQL. It’s faster, more direct, more powerful, easier to understand, allows you to make full use of the power of the database and your knowledge isn’t suddenly valueless when you go to a project with a different ORM. |
|
Good ORMs make sure your data model is always aligned with the DB, and there is no way in hell a runtime error can occur. What's more, it automates the mindless data class/table matching for 99% of your use-cases.
Once you got a more sophisticated query, please use SQL. But for simple stuff, use ORM.