Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is second level cache is needed for query cache

 
Saurabh Moghe
Greenhorn
Posts: 5
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to implement query cache.. so i set 'hibernate.cache.use_query_cache ' to true ..and run but got an error



do i need to implement second level cache for query cache
 
Will Myers
Ranch Hand
Posts: 392
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at a guess you also need to tell it what implementation you want to use
 
Richard Chesterwood
Virtual Pair Programmers Rep
Greenhorn
Posts: 29
7
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The queries are cached in the second level cache so yes you need to configure a full 2LC before you switch on Query caching.

Off topic, but be careful using a query cache: http://tech.puredanger.com/2009/07/10/hibernate-query-cache/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic