Skip to content

Commit

Permalink
SAK-44851 - Make hibernate generate_statistics configurable and false…
Browse files Browse the repository at this point in the history
… by default (sakaiproject#8928)
  • Loading branch information
jonespm authored Jan 4, 2021
1 parent 6999af0 commit ed77d6e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,15 @@
# DEFAULT: false
# hibernate.show_sql=false

# Enable hibernate to generate metric statistics
# DEFAULT: false
# hibernate.generate_statistics=true

# If you set this above setting to true, you'll probably want to log the summary stats generated by using this property (or incrementing your log.config.count and adding this new one on there)
# You may also want to log execution time for each query this is enabled in DEBUG.org.hibernate.stat
# log.config.count = 1
# log.config.1 = INFO.org.hibernate.engine.internal.StatisticalLoggingSessionEventListener

# The database username and password. The defaults are for the out-of-the-box HSQLDB.
# Change to match your setup. Do NOT enable access to your database without a password.
# Defaults: HSQLDB default user: "sa"/""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ bottom.copyrighttext=Copyright 2003-currentYearFromServer The Apereo Foundation.
# Default is to create needed schema
auto.ddl=true

# Enable hibernate SQL debugging output in the logs.
# Disable hibernate SQL debugging output in the logs by default
hibernate.show_sql=false

# Disable hibernate generating statistics by default
hibernate.generate_statistics=false

## DB DEFAULTS
[email protected]=sa
[email protected]=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.use_second_level_cache">true</prop>
<prop key="hibernate.cache.region.factory_class">org.apache.ignite.cache.hibernate.HibernateRegionFactory</prop>
<prop key="hibernate.generate_statistics">true</prop>
<prop key="hibernate.generate_statistics">${hibernate.generate_statistics}</prop>
<prop key="hibernate.enable_lazy_load_no_trans">true</prop>
<prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate5.SpringSessionContext</prop>
<prop key="org.apache.ignite.hibernate.default_access_type">READ_ONLY</prop>
Expand Down

0 comments on commit ed77d6e

Please sign in to comment.