188 |
|
|
189 |
|
|
190 |
protected ArrayList<Adresse> hentAdresseListe(PreparedStatement stmt) throws SQLException{ |
protected ArrayList<Adresse> hentAdresseListe(PreparedStatement stmt) throws SQLException{ |
191 |
ArrayList<Adresse> list = new ArrayList<Adresse>( 30000 ); |
ArrayList<Adresse> list = new ArrayList<Adresse>( 1000000 ); |
192 |
|
|
193 |
//logger.info("Starting query"); |
//logger.info("Starting query"); |
194 |
ResultSet res = stmt.executeQuery(); |
ResultSet res = stmt.executeQuery(); |
234 |
conn = DriverManager.getConnection( |
conn = DriverManager.getConnection( |
235 |
"jdbc:mysql://" + |
"jdbc:mysql://" + |
236 |
db_host + |
db_host + |
237 |
":3306/", |
":3306/?rewriteBatchedStatements=true", |
238 |
connectionProps); |
connectionProps); |
239 |
logger.info("Connected to database"); |
logger.info("Connected to database"); |
240 |
return conn; |
return conn; |