this post was submitted on 23 Mar 2025
259 points (98.5% liked)

LinkedinLunatics

4198 readers
7 users here now

A place to post ridiculous posts from linkedIn.com

(Full transparency.. a mod for this sub happens to work there.. but that doesn't influence his moderation or laughter at a lot of posts.)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] aubeynarf@lemmynsfw.com 7 points 1 week ago* (last edited 1 week ago) (1 children)

No, just write a repository to expose domain operations and implements them using SQL directly. Trying to fake OO object graphs against a RDBMS with a super-complex and leaky ORM is just painful.

[–] Dhs92@programming.dev 1 points 1 week ago (2 children)

Would you classify GORM that way?

[–] aubeynarf@lemmynsfw.com 2 points 1 week ago (1 children)

Groovy’s ORM? I recall it being Hibernate under the hood and I had to fight with it to avoid common problems like hidden IO and N+1 query blowups (iterating over a set of results and then touching the wrong property means you are making another network call for each), learning its particular DSL for schema definition and associations, and not having a way to represent any but the simplest SQL constructs. The usual ORM stuff.

To the extent that you can write a syntax-checked SQL statement and it deserializes the results into some collection of row objects, it’s fine. But that’s not the “ORM” part.

[–] Dhs92@programming.dev 2 points 1 week ago (1 children)
[–] aubeynarf@lemmynsfw.com 3 points 1 week ago

I have not used that GORM, but ORMs have those problems generally.

[–] Swedneck@discuss.tchncs.de 1 points 1 week ago

i prefer going GORMLESS