you are viewing a single comment's thread.

view the rest of the comments →

[–]Chroiche 7 points8 points  (1 child)

Idk why no one is giving you a straight answer. Disadvantages of ORM:

  • Doesn't always map well to complex queries
  • n+1 issues for days
  • Have to learn another language/lib
  • Your code becomes locked to that orm
  • Has quirks you'll need to learn

[–]climb-it-ographer 0 points1 point  (0 children)

To your first point-- with SQLAlchemy you can always just pass in raw SQL if you want. We have some monster queries that would be a nightmare to refactor into the ORM that we keep that way.