From 3e76ef5281cef693d3defe061f3c02a542a008f0 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 29 Mar 2026 11:44:30 +0200 Subject: [PATCH] fix(#152): disable open-in-view to prevent HikariPool exhaustion spring.jpa.open-in-view=true (the default) holds a DB connection open for the entire HTTP request lifecycle. Under concurrent dashboard API calls (Promise.allSettled fires 3 at once), the pool of 10 is exhausted and the backend crashes with connection timeout errors. Setting open-in-view=false releases connections as soon as each @Transactional method completes. Co-Authored-By: Claude Sonnet 4.6 --- backend/src/main/resources/application.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/resources/application.yaml b/backend/src/main/resources/application.yaml index fb1237fb..aa4c8ceb 100644 --- a/backend/src/main/resources/application.yaml +++ b/backend/src/main/resources/application.yaml @@ -12,6 +12,7 @@ spring: enabled: false # Managed explicitly via FlywayConfig bean jpa: + open-in-view: false # Prevents holding DB connections for the full HTTP request lifecycle hibernate: ddl-auto: none properties: