2 ms·
AFAIK, Twitter is doing exactly the same thing with Rails that Yahoo is doing with PHP. They ditch the ORM and use it as a thin presentation layer over RPC cal
by nostrademons 17y ago
AFAIK, Twitter is doing exactly the same thing with Rails that Yahoo is doing with PHP. They ditch the ORM and use it as a thin presentation layer over RPC calls.
I don't know too many intimate details of Rails, but ORM is most certainly not at the heart of Django. It's quite common to drop the model layer entirely and run it on top of either RPCs or a different backing data store (see AppEngine, for example, and every Django app I've written at Google).
ORMs have well-known performance problems - a couple startups ago, I was doing webapps in Java, and we found that relying on Hibernate gave us an instant 5x slowdown over raw JDBC calls, and far more than that relative to our proprietary database.