Fix typo in '12.2. Session batching'

This commit is contained in:
syeeuns 2023-08-08 00:21:12 +09:00 committed by Christian Beikov
parent e1f9ccaee9
commit 7974c0a842
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ include::{example-dir-doc-batch}/BatchTests.java[tags=batch-session-batch-exampl
There are several problems associated with this example: There are several problems associated with this example:
. Hibernate caches all the newly inserted `Customer` instances in the session-level cache, so, when the transaction ends, 100 000 entities are managed by the persistence context. . Hibernate caches all the newly inserted `Person` instances in the session-level cache, so, when the transaction ends, 100 000 entities are managed by the persistence context.
If the maximum memory allocated to the JVM is rather low, this example could fail with an `OutOfMemoryException`. If the maximum memory allocated to the JVM is rather low, this example could fail with an `OutOfMemoryException`.
The Java 1.8 JVM allocated either 1/4 of available RAM or 1Gb, which can easily accommodate 100 000 objects on the heap. The Java 1.8 JVM allocated either 1/4 of available RAM or 1Gb, which can easily accommodate 100 000 objects on the heap.
. long-running transactions can deplete a connection pool so other transactions don't get a chance to proceed. . long-running transactions can deplete a connection pool so other transactions don't get a chance to proceed.