Skip to content

Commit

Permalink
links to settings from doc
Browse files Browse the repository at this point in the history
(oops!)
  • Loading branch information
gavinking committed Dec 10, 2024
1 parent 8f11eb5 commit c88b1e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions documentation/src/main/asciidoc/introduction/Tuning.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ But in case it helps, we often test Hibernate with the following configuration,
|===
| Configuration property name | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `jcache`
| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `jcache`
| `hibernate.javax.cache.uri` | `/ehcache.xml`
|===

Expand Down Expand Up @@ -603,7 +603,7 @@ Alternatively, to use Infinispan as the cache implementation, the following sett
|===
| Configuration property name | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `infinispan`
| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `infinispan`
| `hibernate.cache.infinispan.cfg` a| Path to infinispan configuration file, for example:
[%breakable,cols="~,35"]
!===
Expand All @@ -624,7 +624,7 @@ Finally, there's a way to globally disable the second-level cache:
|===
| Configuration property name | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#USE_SECOND_LEVEL_CACHE[`hibernate.cache.use_second_level_cache`] | `true` to enable caching, or `false` to disable it
| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#USE_SECOND_LEVEL_CACHE[`hibernate.cache.use_second_level_cache`] | `true` to enable caching, or `false` to disable it
|===

When `hibernate.cache.region.factory_class` is set, this property defaults to `true`.
Expand All @@ -650,7 +650,7 @@ The query cache must be enabled explicitly:
|===
| Configuration property name | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#USE_QUERY_CACHE[`hibernate.cache.use_query_cache`] | `true` to enable the query cache
| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#USE_QUERY_CACHE[`hibernate.cache.use_query_cache`] | `true` to enable the query cache
|===

To cache the results of a query, call `SelectionQuery.setCacheable(true)`:
Expand Down Expand Up @@ -969,7 +969,7 @@ We may ask Hibernate to collect statistics about its activity by setting this co
|===
| Configuration property name | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/StatisticsSettings#GENERATE_STATISTICS[`hibernate.generate_statistics`] | `true` to enable collection of statistics
| link:{doc-javadoc-url}org/hibernate/cfg/StatisticsSettings.html#GENERATE_STATISTICS[`hibernate.generate_statistics`] | `true` to enable collection of statistics
|===

The statistics are exposed by the link:{doc-javadoc-url}org/hibernate/stat/Statistics.html[`Statistics`] object:
Expand Down Expand Up @@ -1003,8 +1003,8 @@ Hibernate offers two configuration properties that can make it easier to identif
|===
| Configuration property name | Purpose | Property value

| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings#LOG_SLOW_QUERY[`hibernate.log_slow_query`] | Log slow queries at the `INFO` level | The minimum execution time, in milliseconds, which characterizes a "slow" query
| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings#USE_SQL_COMMENTS[`hibernate.use_sql_comments`] | Prepend comments to the executed SQL | `true` or `false`
| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings.html#LOG_SLOW_QUERY[`hibernate.log_slow_query`] | Log slow queries at the `INFO` level | The minimum execution time, in milliseconds, which characterizes a "slow" query
| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings.html#USE_SQL_COMMENTS[`hibernate.use_sql_comments`] | Prepend comments to the executed SQL | `true` or `false`
|===

When `hibernate.use_sql_comments` is enabled, the text of the HQL query is prepended as a comment to the generated SQL, which usually makes it easy to find the HQL in the Java code.
Expand Down

0 comments on commit c88b1e8

Please sign in to comment.