update the doc to show how to enable subselects

This commit is contained in:
Gavin 2023-05-21 00:58:04 +02:00 committed by Gavin King
parent eb959722f9
commit 12e1a97e50
1 changed files with 4 additions and 2 deletions

View File

@ -126,13 +126,15 @@ Hibernate provides several strategies for efficiently fetching associations and
Of these, you should almost always use outer join fetching.
Batch fetching is disabled by default, but we may enable it using this configuration property:
Both batch fetching and subselect fetching are disabled by default, but we may enable one or the other using properties:
.Configuration settings to enable batch and subselect fetching
[cols="35,~"]
|===
| Configuration property name | Property value
| `hibernate.default_batch_fetch_size` | A sensible batch size
| `hibernate.default_batch_fetch_size` | A sensible batch size `>1` to enable batch fetching
| `hibernate.use_subselect_fetch` | `true` to enable subselect fetching
|===
That's all there is to it.