Skip to content

Commit

Permalink
Reduce the Default Pool Size for the Schema Generator #841 (#842)
Browse files Browse the repository at this point in the history
* Reduce the Default Pool Size for the Schema Generator #841

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>

* Reduce the Default Pool Size for the Schema Generator #841


Signed-off-by: Paul Bastide <pbastide@us.ibm.com>

* Reduce the Default Pool Size for the Schema Generator #841

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 authored Mar 24, 2020
1 parent df8c703 commit 04110ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019
* (C) Copyright IBM Corp. 2019, 2020
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -119,7 +119,7 @@ public class Main {
private IDatabaseTranslator translator = new Db2Translator();

// The connection pool and transaction provider to support concurrent operations
private int maxConnectionPoolSize = FhirSchemaConstants.DEFAULT_POOL_SIZE / 2;
private int maxConnectionPoolSize = FhirSchemaConstants.DEFAULT_POOL_SIZE;
private PoolConnectionProvider connectionPool;
private ITransactionProvider transactionProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
*/
public class FhirSchemaConstants {

// A lower pool size is selected as default to limit the likelihood of contention on the DBMS.
// Standard connection/thread pool size
public static final int DEFAULT_POOL_SIZE = 80;
public static final int DEFAULT_POOL_SIZE = 1;

// Size of string columns in the search tables. DSTU2 was 511
public static final int MAX_SEARCH_STRING_BYTES = 1024;
Expand Down

0 comments on commit 04110ec

Please sign in to comment.