- This code is tested on Windows and Mac. Windows is working great, Mac is very slow (read is 11 seconds on Mac, and 100 milliseconds on Windows).
- Application is using Spring Boot console application (for JPA implementation)
- MacOS Sierra 10.12.3, Core i7 CPU, 16GB RAM, SSD drive
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Running sample jar:
- To generate data (write):
java -jar demo-0.0.1-SNAPSHOT.jar write /path/to/file.odb
- To read data (write):
java -jar demo-0.0.1-SNAPSHOT.jar read /path/to/file.odb
Attached:
- JAR file
- Source code
- Netbeans profiler traces (seems issue in createEntityManager() performance)