Skip to content

Commit f161386

Browse files
committed
add a HINT and mention an alternative API
1 parent 147cf6b commit f161386

File tree

1 file changed

+12
-5
lines changed
  • documentation/src/main/asciidoc/introduction

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ Clever, huh?
220220
Both batch fetching and subselect fetching are disabled by default, but we may enable one or the other globally using properties.
221221

222222
.Configuration settings to enable batch and subselect fetching
223-
[%breakable,cols="35,~, 20"]
223+
[%breakable,cols="32,~,28"]
224224
|===
225-
| Configuration property name | Property value | Alternative
225+
| Configuration property name | Property value | Alternatives
226226

227-
| `hibernate.default_batch_fetch_size` | A sensible batch size `>1` to enable batch fetching | `@BatchSize`, `setFetchBatchSize()`
228-
| `hibernate.use_subselect_fetch` | `true` to enable subselect fetching | `@Fetch(SUBSELECT)`
227+
| `hibernate.default_batch_fetch_size` | A sensible batch size `>1` to enable batch fetching | `@BatchSize()`, `setFetchBatchSize()`
228+
| `hibernate.use_subselect_fetch` | `true` to enable subselect fetching | `@Fetch(SUBSELECT)`, `setSubselectFetchingEnabled()`
229229
|===
230230

231231
Alternatively, we can enable one or the other in a given session:
@@ -1010,4 +1010,11 @@ The comment text may be customized:
10101010

10111011
Finally, many systems which require high scalability now make use of reactive programming and reactive streams.
10121012
{hr}[Hibernate Reactive] brings O/R mapping to the world of reactive programming.
1013-
You can learn much more about Hibernate Reactive from its {hr-guide}[Reference Documentation].
1013+
You can learn much more about Hibernate Reactive from its {hr-guide}[Reference Documentation].
1014+
1015+
[TIP]
1016+
====
1017+
Hibernate Reactive may be used alongside vanilla Hibernate in the same program, and can reuse the same entity classes.
1018+
This means you can use the reactive programming model exactly where you need it—perhaps only in one or two places in your system.
1019+
You don't need to rewrite your whole program using reactive streams.
1020+
====

0 commit comments

Comments
 (0)