Game uses hikaricp for all connection pooling. Connection count set dynamically.
This commit is contained in:
1 parent
3c5ffed352
commit
0e4490576a
16 files changed
+136
-184
No files matched your search
@@ -10,7 +10,6 @@ package engine.gameManager;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.db.archive.DataWarehouse;
|
||||
import engine.objects.AbstractGameObject;
|
||||
import engine.objects.City;
|
||||
import engine.objects.PlayerCharacter;
|
||||
@@ -58,7 +57,7 @@ public enum SimulationManager {
|
||||
|
||||
String popString = "";
|
||||
|
||||
try (Connection connection = DataWarehouse.connectionPool.getConnection();
|
||||
try (Connection connection = DbManager.getConnection();
|
||||
PreparedStatement getPopString = connection.prepareStatement("CALL GET_POPULATION_STRING()");) {
|
||||
|
||||
ResultSet rs = getPopString.executeQuery();
|
||||
|
||||
Reference in new issue
Block a user