News for hackers. Stuff that matters.
Re:The Troublesome Active Record Pattern by tomlock on Thursday March 19, 2020 @03:23AM (#22625311)
But in Django you can do the same thing that doesn't return all rows with `select_related` so it seems kind of like you're not using the features of whatever ORM that is.
Re:The Troublesome Active Record Pattern by mtberatwork on Thursday March 19, 2020 @07:08AM (#22626354)
I was confused a bit as well by the examples since Django's ORM has functionality to do exactly what the author is trying to do (e.g. select_related, prefetch_related, <model>_set, values, managers, F expressions, transactions, etc).