4 ms·
Not django specific: Personally, after years of trying to solve the Object/Relational mismatch, I realized that it's better to drop the object side and stay wi
by beagle3 15y ago
Not django specific:
Personally, after years of trying to solve the Object/Relational mismatch, I realized that it's better to drop the object side and stay with the relational side if you need a database.
The price is a little bit of syntactic sugar. The return is the ability to reason about your database and how it accesses data.
web2py eschewed ORM for a DAL (Database Abstraction Layer). I do not know how it compares to SQLAlchemy, but it is independent of everything else web2py; I've been using it in non-web projects and it is excellent, although a little slow if you have large result sets.
- lucian1900 15y agoSQLAlchemy is philosophically similar to DAL from what I'm reading, but closer to pure set algebra than SQL. On top of that, it builds SQL-specific features and declarative models (as objects).