Re:12 requests per second: A realistic look at Python web fr...
by cztomsik on Friday February 19, 2021 @12:07PM
(#26195209)
IIRC spark can optimize it away, and in OO there shouldn't be user_id
[ Parent
| on HN ]
Re:12 requests per second: A realistic look at Python web fr...
by airstrike on Friday February 19, 2021 @12:20PM
(#26195369)
> in OO there shouldn't be user_id
I don't think that's right. There is a user_id column in the book table, so why shouldn't there be book.user_id?
Re:12 requests per second: A realistic look at Python web fr...
by cztomsik on Sunday February 21, 2021 @01:50PM
(#26216003)
depends if you're doing active record (which I am not considering as typical ORM) or data mapper like hibernate where your entity is POJO with id and annotations but typically no foreign keys (just references to other model classes)
hibernate is then "the magic "environment where it just works"
I realize OO is out of fashion now but it's still true and it still works and I've been in a lots of projects where ORM was useful