We are starting a new projet using JPA/Hibernate. Someone in the team is refusing to use named queries saying that he had performance issues with those before. According to him, the named queries are not only parsed at startup but they also are executed which would slow significantly the startup.
Is it right and if so, is there any configuration to prevent hibernate from executing the queries?
But they run faster.. So what would you rather have, slower startup or faster query performance.
You also get a nice benefit with validation so you spot your mistakes early..
But this is of course the theory. As always when it comes to performance you should test and verify on your own system!
Here is a nice read on the subject: http://eubauer.de/kingsware/2011/03/25/organize-your-named-jpql-queries/