Skip to content

Commit d1b76f0

Browse files
OFBIZ-13412 - Updated the following:
Based on the recommendations to get optimised performance, changing the pool-minsize value to 2 same as we have this parameter value for Postgres and MySQL. And adding CACHE_SIZE=65536 (64MB) for the h2 URI as this is also recommended for optimised performance of the database.
1 parent b06ac9e commit d1b76f0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

framework/entity/config/entityengine.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ access. For a detailed description see the core/docs/entityconfig.html file.
179179

180180
<inline-jdbc
181181
jdbc-driver="org.h2.Driver"
182-
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;INIT=CREATE SCHEMA IF NOT EXISTS OFBIZ\;SET SCHEMA OFBIZ"
182+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=65536;INIT=CREATE SCHEMA IF NOT EXISTS OFBIZ\;SET SCHEMA OFBIZ"
183183
jdbc-username="ofbiz"
184184
jdbc-password-lookup="h2-ofbiz"
185185
isolation-level="ReadCommitted"
186-
pool-minsize="0"
186+
pool-minsize="2"
187187
pool-maxsize="250"
188188
pool-sleeptime="300000"
189189
test-on-borrow="true"
@@ -207,11 +207,11 @@ access. For a detailed description see the core/docs/entityconfig.html file.
207207

208208
<inline-jdbc
209209
jdbc-driver="org.h2.Driver"
210-
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;INIT=CREATE SCHEMA IF NOT EXISTS ODBC\;SET SCHEMA ODBC"
210+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=65536;INIT=CREATE SCHEMA IF NOT EXISTS ODBC\;SET SCHEMA ODBC"
211211
jdbc-username="ofbiz"
212212
jdbc-password-lookup="h2-ofbizodbc"
213213
isolation-level="ReadCommitted"
214-
pool-minsize="0"
214+
pool-minsize="2"
215215
pool-maxsize="250"
216216
pool-sleeptime="300000"
217217
test-on-borrow="true"
@@ -240,11 +240,11 @@ access. For a detailed description see the core/docs/entityconfig.html file.
240240
<read-data reader-name="ext-demo"/>
241241
<inline-jdbc
242242
jdbc-driver="org.h2.Driver"
243-
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;INIT=CREATE SCHEMA IF NOT EXISTS OLAP\;SET SCHEMA OLAP"
243+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=65536;INIT=CREATE SCHEMA IF NOT EXISTS OLAP\;SET SCHEMA OLAP"
244244
jdbc-username="ofbiz"
245245
jdbc-password-lookup="h2-ofbizolap"
246246
isolation-level="ReadCommitted"
247-
pool-minsize="0"
247+
pool-minsize="2"
248248
pool-maxsize="250"
249249
pool-sleeptime="300000"
250250
test-on-borrow="true"
@@ -273,11 +273,11 @@ access. For a detailed description see the core/docs/entityconfig.html file.
273273

274274
<inline-jdbc
275275
jdbc-driver="org.h2.Driver"
276-
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;INIT=CREATE SCHEMA IF NOT EXISTS TENANT\;SET SCHEMA TENANT"
276+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=65536;INIT=CREATE SCHEMA IF NOT EXISTS TENANT\;SET SCHEMA TENANT"
277277
jdbc-username="ofbiz"
278278
jdbc-password-lookup="h2-ofbiztenant"
279279
isolation-level="ReadCommitted"
280-
pool-minsize="0"
280+
pool-minsize="2"
281281
pool-maxsize="250"
282282
pool-sleeptime="300000"
283283
test-on-borrow="true"

0 commit comments

Comments
 (0)