Skip to content

Commit aee9adc

Browse files
committed
add a tip about fetch size and MySQL
1 parent ab9ad65 commit aee9adc

File tree

1 file changed

+6
-0
lines changed
  • documentation/src/main/asciidoc/introduction

1 file changed

+6
-0
lines changed

documentation/src/main/asciidoc/introduction/Tuning.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ The Oracle JDBC driver defaults to a JDBC fetch size of 10.
128128
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.
129129
====
130130

131+
[TIP]
132+
====
133+
The MySQL JDBC driver ignores the fetch size by default.
134+
The JDBC connection property `useCursorFetch=true` enables the use of server-side cursors, and with this setting the driver respects the fetch size.
135+
====
136+
131137
[[statement-batching]]
132138
=== Enabling statement batching
133139

0 commit comments

Comments
 (0)