From 9828ad7b3371eb248c85dd78332e8c03f3fbd0c1 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 26 Oct 2024 10:30:51 +0200 Subject: [PATCH] document performance implications of id batching i.e. BatchSize Signed-off-by: Gavin King --- .../src/main/java/org/hibernate/BatchSize.java | 11 +++++++++++ .../org/hibernate/MultiIdentifierLoadAccess.java | 12 ++++++++++++ .../src/main/java/org/hibernate/Session.java | 11 ++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/BatchSize.java b/hibernate-core/src/main/java/org/hibernate/BatchSize.java index cf982b6ad1..1c848dc59d 100644 --- a/hibernate-core/src/main/java/org/hibernate/BatchSize.java +++ b/hibernate-core/src/main/java/org/hibernate/BatchSize.java @@ -23,6 +23,17 @@ import java.util.List; * If an explicit batch size is set manually, care should be taken * to not exceed the capabilities of the underlying database. *

+ * The performance impact of setting a batch size depends on whether + * a SQL array may be used to pass the list of identifiers to the + * database: + *