From 185aacc24a266a4d0ec74c436cb648e5752b9097 Mon Sep 17 00:00:00 2001 From: Hari Date: Sun, 15 Mar 2026 17:50:52 +0530 Subject: [PATCH] high performance fix --- .../src/main/resources/application-prod.properties | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/backend/src/main/resources/application-prod.properties b/backend/src/main/resources/application-prod.properties index a7dfaf3..39b780b 100644 --- a/backend/src/main/resources/application-prod.properties +++ b/backend/src/main/resources/application-prod.properties @@ -11,13 +11,20 @@ spring.datasource.hikari.connection-timeout=20000 spring.datasource.hikari.idle-timeout=600000 spring.datasource.hikari.max-lifetime=1800000 spring.datasource.hikari.pool-name=JobTrackerPro-HikariPool +spring.datasource.hikari.data-source-properties.cachePrepStmts=true +spring.datasource.hikari.data-source-properties.prepStmtCacheSize=250 +spring.datasource.driver-class-name=org.postgresql.Driver + # Hibernate spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=false spring.jpa.open-in-view=false -#spring.jpa.database-platform=org.hibernate.dialect.MySQLDialec -#spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect +spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect + +spring.jpa.properties.hibernate.jdbc.batch_size=25 +spring.jpa.properties.hibernate.order_inserts=true +spring.jpa.properties.hibernate.order_updates=true # Gemini AI app.gemini.enabled=true