News for hackers. Stuff that matters.
Re:12 requests per second: A realistic look at Python web fr... by acdha on Friday February 19, 2021 @12:17AM (#26190029)
I favor a hybrid approach: use the Django ORM to define models, do migrations, auto generate the admin, etc. but don’t be shy about using the extension points (extra, raw, cursors) to put in an optimized query for a hotspot. You can get pretty far using the ORM but it’s really valuable to be able to be comfortable dropping down for things like reports or bulk processing.
Re:12 requests per second: A realistic look at Python web fr... by Jaxtek on Friday February 19, 2021 @02:03AM (#26190494)
I use ORM for Django's auth system alone.I write all other REST API queries in plain SQL.