How much overhead does a framework like Hibernate make?

Developers sometimes encounter Enterprise multi-tier web applications ... Enterprise is seen by some as synonymous with slow, bloated, and resource-intensive applications.

Do environments such as Hibernate have a non-trivial performance impact compared to writing your own DAOs or other less abstract approaches? In a non-trivial way, I believe the question is "what is the user loading pages more slowly lately".

+3
source share
4 answers

, , , . , .

PS , Hibernate, Hibernate profiler. !

PPS Hibernate SQL!

+6

, , , . , , , .

, , , , , : , Hibernate , sloooow. , , JDBC, iBatis - , faaaaast. , : Hibernate .

, . ... , object.getX().getZ().getW().getSomeOtherThing().getEtc(), , Hibernate SQL Heaven, .

-, :

  • - .
  • ( ) - ... .

, . ? ... , . .

+1

, , , .

CRUD . , Hibernate SQL, (, ) , , ( ), ( ), , ( SQL DAO).

- , , Hibernate StatelessSession . , webapp ( 10- webapp, ).

+1

, . , , , :

  • ORM- .

  • , ORM- , "" . .

  • , , .

ORM . 1% SQL, Hibernate 99% .

0

Source: https://habr.com/ru/post/1735204/


All Articles