Skip to content

Commit

Permalink
increased MAX_LINES to 70000
Browse files Browse the repository at this point in the history
use 'INSERT IGNORE' for 'line_data_nbrcnt' to insert without errors data with a lot of decimal numbers to Aurora DB
  • Loading branch information
TatianaBurek committed Jul 16, 2019
1 parent 3759ef9 commit 0db15d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class MysqlLoadDatabaseManager extends MysqlDatabaseManager implements Lo
0.200000000, 0.125000000, 0.100000000, 0.055555556, 0.037037037, 0.025000000,
0.016666667, 0.011111111, 0.007142857, 0.004761905, 0.002857143, 0.002000000
};
private static final int MAX_LINES = 60000;
private static final int MAX_LINES = 70000;
private static final int MAX_LINE_LEN = 2000;
private final Map<String, Integer> tableVarLengthLineDataId = new HashMap<>();
private final Map<String, Integer> statHeaders = new HashMap<>();
Expand Down Expand Up @@ -173,7 +173,7 @@ public MysqlLoadDatabaseManager(
+ "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,"
+ "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");//105
tableToInsert
.put("line_data_nbrcnt", "INSERT INTO line_data_nbrcnt VALUES (?,?,?,?,?,?,?,?,?,?,?,?,"
.put("line_data_nbrcnt", "INSERT IGNORE INTO line_data_nbrcnt VALUES (?,?,?,?,?,?,?,?,?,?,?,?,"
+ "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");//30
tableToInsert
.put("line_data_enscnt", "INSERT INTO line_data_enscnt VALUES (?,?,?,?,?,?,?,?,?,?,?,?,"
Expand Down

0 comments on commit 0db15d8

Please sign in to comment.