Fix typo in '12.2. Session batching'
This commit is contained in:
parent
e1f9ccaee9
commit
7974c0a842
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue