diff --git a/documentation/src/main/asciidoc/introduction/Tuning.adoc b/documentation/src/main/asciidoc/introduction/Tuning.adoc index 6849c0ffc3a3..cb8397668da0 100644 --- a/documentation/src/main/asciidoc/introduction/Tuning.adoc +++ b/documentation/src/main/asciidoc/introduction/Tuning.adoc @@ -92,7 +92,10 @@ The following settings are common to all connection pools supported by Hibernate | link:{doc-javadoc-url}/org/hibernate/cfg/JdbcSettings.html#ISOLATION[`hibernate.connection.isolation`] | The default transaction isolation level |=== -A popular alternative to Agroal is HikariCP. +:hikaricp: https://github.com/brettwooldridge/HikariCP + +A popular alternative to Agroal is {hikaricp}[HikariCP]. +Integration with HikariCP is provided by the module `org.hibernate.orm:hibernate-hikaricp`. Its settings are enumerated by link:{doc-javadoc-url}/org/hibernate/cfg/HikariCPSettings.html[`HikariCPSettings`]. .Container-managed datasources @@ -125,6 +128,12 @@ The Oracle JDBC driver defaults to a JDBC fetch size of 10. You should _always_ set `hibernate.jdbc.fetch_size` explicitly if you're using Oracle, or, even better, specify the parameter `defaultRowPrefetch` in the JDBC connection URL. ==== +[TIP] +==== +The MySQL JDBC driver ignores the fetch size by default. +The JDBC connection property `useCursorFetch=true` enables the use of server-side cursors, and with this setting the driver respects the fetch size. +==== + [[statement-batching]] === Enabling statement batching