Re:The Marketing Behind MongoDB
by Can_Not on Wednesday August 30, 2017 @08:49AM
(#15131628)
I haven't thought of this before, ORMs probably use 2-3x as much memory as regular structs/dicts. I've started using only the query builder in all my side projects and I've had a good experience so far.
[ Parent
| on HN ]
Re:The Marketing Behind MongoDB
by anentropic on Wednesday August 30, 2017 @10:45AM
(#15132500)
yes, not just the memory... for models with lots of fields, in Python+Django, the time overhead of instantiating these complex heavyweight objects can really add up if you have a whole 'page' of them
I always figured the main overhead was doing I/O with the db, but in these cases it's not always so
interesting blog post about this from the creator of SQLAlchemy: http://techspot.zzzeek.org/2015/02/15/asynchronous-python-an...