|
|
|
|
|
by santiagobasulto
661 days ago
|
|
One common pitfall with Django ORM's is that it makes it very easy the use of inheritance in models. But as we know, the "impedance mismatch" between OOP and the Relational model is a problem. It has happened that a dev in our team was populating an endpoint that used inheritance and when looking at the number of queries we were over 100. But the solution in those cases is just OUTER JOINs and CASE. Especially since we use Postgres in the backend and it works so well. So yes, there are some pitfalls, but they're greatly overshadowed by the advantages of the ORM. |
|
It's like understanding memory allocation if you're writing c. It's just part of the job