Restructure chr saving - gather stats in record

This commit is contained in:
P0nk
2024-09-14 11:48:32 +02:00
parent 23a8a33e5f
commit abbec8120e
4 changed files with 261 additions and 122 deletions

View File

@@ -25,7 +25,7 @@ public class CharacterSaver {
log.debug("Saving chr {}", chr.getName());
try (Connection con = DatabaseConnection.getConnection()) {
con.setAutoCommit(false);
con.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
try {
chr.saveCharToDB(con);
con.commit();