cancel
Showing results for 
Search instead for 
Did you mean: 

JPA performance measure for static and dynamic query

Former Member
0 Kudos

Hi All ,

I want to know which query gives faster output , static(named query) or dynamic query. Also if we use dynamic query is used do we need to set flush mode before transaction?

Regards

Kavita

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi,

Definitely static (named) queries give better performance as they can be compiled at deploy time.

I'm not sure I understand your second question.

Cheers,

\-- Vladimir

Answers (0)