From b0ba0f6310a7cfe46d9ec711f2eb48574cc1249a Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Wed, 24 Jun 2026 11:20:47 +0200 Subject: [PATCH 1/2] Performance degradations in H2 `2.4` --- java/developing-applications/testing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/developing-applications/testing.md b/java/developing-applications/testing.md index bb224a3655..7b6a4ec9db 100644 --- a/java/developing-applications/testing.md +++ b/java/developing-applications/testing.md @@ -267,6 +267,10 @@ Check out the version in our [CAP Java bookshop sample project](https://github.c H2 includes a built-in web console application, providing a user-friendly interface for database administration, query execution, and data inspection without requiring external tools. CAP Java applications configured with the H2 database expose the administration console under `http://localhost:8080/h2-console` (assuming default port `8080`). +::: warning Use the latest `2.3.x` version of H2 +H2 `2.4` has a bug causing performance degradations in certain subqueries, which are used by cascade delete. +::: + ### Setup & Configuration #### Using the Maven Archetype From 5d1bf211cf73684cb87f34197b3ac1941d2f52e6 Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:17:33 +0200 Subject: [PATCH 2/2] Update java/developing-applications/testing.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adrian Görler --- java/developing-applications/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/developing-applications/testing.md b/java/developing-applications/testing.md index 7b6a4ec9db..1078c4065f 100644 --- a/java/developing-applications/testing.md +++ b/java/developing-applications/testing.md @@ -268,7 +268,7 @@ Check out the version in our [CAP Java bookshop sample project](https://github.c H2 includes a built-in web console application, providing a user-friendly interface for database administration, query execution, and data inspection without requiring external tools. CAP Java applications configured with the H2 database expose the administration console under `http://localhost:8080/h2-console` (assuming default port `8080`). ::: warning Use the latest `2.3.x` version of H2 -H2 `2.4` has a bug causing performance degradations in certain subqueries, which are used by cascade delete. +Avoid using the version `2.4.240` of H2. It has a bug causing performance degradations in certain subqueries, which are used by cascade delete. ::: ### Setup & Configuration