Last active
August 21, 2018 21:23
-
-
Save jerolba/4d491249bfff393de22b39f96b8b87c7 to your computer and use it in GitHub Desktop.
In batches of 1000 records
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EntityManagerFactoryFactory factory = new EntityManagerFactoryFactory(dsFactory, TripEntity.class) { | |
@Override | |
public Properties properties() { | |
Properties properties = super.properties(); | |
properties.put("hibernate.jdbc.batch_size", batchSize); | |
return properties; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment