From c98d773f6ef86b5d6d148905159fe3dc5308585e Mon Sep 17 00:00:00 2001 From: Gavin Date: Sun, 21 May 2023 00:58:04 +0200 Subject: [PATCH] update the doc to show how to enable subselects --- documentation/src/main/asciidoc/introduction/Tuning.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/documentation/src/main/asciidoc/introduction/Tuning.adoc b/documentation/src/main/asciidoc/introduction/Tuning.adoc index 4e2eec51c6..72d574d84d 100644 --- a/documentation/src/main/asciidoc/introduction/Tuning.adoc +++ b/documentation/src/main/asciidoc/introduction/Tuning.adoc @@ -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.