Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3695348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:36:25+00:00 2026-05-19T04:36:25+00:00

These are the default Hibernate settings in Grails (found in conf/DataSource.groovy ): hibernate {

  • 0

These are the default Hibernate settings in Grails (found in conf/DataSource.groovy):

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}

What are some good examples of circumstances under which one would like to:

  • disable the second level cache,
  • disable the query cache, or
  • change the default cache provider (EhCacheProvider)?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:36:26+00:00Added an answer on May 19, 2026 at 4:36 am

    In our project we are using the Datasources plug in to be able to connect to another database. This database is managed by another system, so we can’t cache these classes because we don’t have a way to know when they are updated, so for this datasource we disabled the second-level cache and the query cache. Just an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Grails 2.0.0 reference manual shows the following as the default Hibernate cache config
What is the name of the default cache used by Hibernate? Is there a
Should I provide these things by default or only on client request (if they
<table class=privilage> <caption> These are the default users for institution </caption> <thead> <tr> <th>Users
there'are these lines in the sample Win32 app created default by VS. Can you
I'm being a little lazy here but are these (below) all the default Backbone
I have gone thru some of the links for hibernate fetch strategies on net.One
In my application, Spring manages connection pool for database access. Hibernate uses these connections
I am trying to create a my first hibernate application in these application by
I am still new to Grails and Hibernate so if you answer keep in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.