<property name="hibernate.cache.use_structured_entries">true</property>
What can it do?I don’t know? Please give an example!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Hibernate Docs – Chapter 3. Configuration:
It specifies whether entries will be written in a readable format or not in the L2 cache. You probably should turn it on if you plan to browse through the cache.
From Hibernate Docs – Chapter 19. Improving performance :
Setting the parameter to
truewill generate some overhead in the L2 cache. Seemingly, it cannot be turned off in a clustered environment, because the overhead is needed to rehydrate entities in such a scenario.You might find the following blog post particulary helpful on this matter: Hibernate Wars: The Query Cache Strikes Back, particularly the Bonus: L2 Cache Reduction section.