Skip to content

mention 'org.hibernate.orm:hibernate-hikaricp' in doc #10699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion documentation/src/main/asciidoc/introduction/Tuning.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Loading