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/3] 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/3] 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 From 0b221ced75572970393d4cf76eb2f0b85d154026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20G=C3=B6rler?= Date: Tue, 30 Jun 2026 16:07:30 +0200 Subject: [PATCH 3/3] Apply suggestion from @renejeglinsky MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: René Jeglinsky --- 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 1078c4065f..aa713ac3ec 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 -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. +Even though there are newer versions available, we cannot recommend using them for now. Therefore we only support until version 2.3.x of H2. This recommendation is subject to change. If our test results allow to recommend newer versions we will do so. ::: ### Setup & Configuration