need explanation on Hibernate criteria -


i new hibernate, when looking @ ancriteria example article; says:

you have no way control sql query generated hibernate, if generated query slow, hard tune query, , database administrator may not it.

but think criteria used generate clause of generated sql, , clause conditions added 1 one , has nothing query's performance, how understand above statement?

first understand usage of hibernate criteria. used fetch data database , sql generated hibernate itself. due configuration of eager fetch, hibernate might unnecessarily generate sql lot of columns , joins hamper performance. in sense, using hql better or sql if cant achieve in hql (which should not case)


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -