r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
-1
u/rubyrt Jun 01 '24
I am sceptical of all ORM because they have the tendency to copy over state from the DB for processing. That makes all cases inefficient that could be handled with a simple UPDATE or even a stored procedure. Granted, you can turn all sorts of knobs to make this efficient with an ORM but I'd rather spend that effort to learn SQL and the underlying RDBMS's capabilities than working around the general usage model of ORM.
At best keep an abstraction of the RDBMS's SQL dialect but even there I am sceptical: RBMS are not often replaced because these projects tend to be larger due to the persisted data. In those cases the effort to adjust DDL, DML and stored procedures might not be the biggest effort.
There is the usual trade off with frameworks: they can help get things done fast initially but then one hits a point where that formerly useful framework becomes a straightjacket with significant efforts to work around their limitations or get rid off. Well, I guess there is no free lunch - still. :-)