Compare with

Comparison of DataNucleus with MySQL server vs DataNucleus with Derby server

Each of the following tables focuses on a specific database operation, where the last table presents average results comparison.

Speed comparison of JPA database persistence operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test2.62.81.42.32.02.6
Element Collection Test1.00.710.480.350.760.53
Inheritance Test2.52.71.32.01.92.3
Indexing Test4.04.52.54.03.34.3
Graph (Binary Tree) Test1.10.620.990.531.10.57
Multithreading Test6.24.92.53.44.44.1
All Tests2.92.71.52.12.22.4

The results above show that in general DataNucleus with Derby server is slightly more efficient than DataNucleus with MySQL server in persisting JPA entity objects to the database.

Speed comparison of JPA database retrieval operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test0.960.569.36.35.13.4
Element Collection Test0.180.360.770.930.470.64
Inheritance Test0.550.458.56.84.53.6
Indexing Test0.820.509.77.15.33.8
Graph (Binary Tree) Test2.10.223.56.62.83.4
Multithreading Test0.271.27.810.04.05.6
All Tests0.810.556.66.33.73.4

The results above show that in general DataNucleus with MySQL server is slightly more efficient than DataNucleus with Derby server in retrieving JPA entity objects from the database.

A large performance gap has been detected when using graphs of objects with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.22) to the normalized speed of DataNucleus with MySQL database server (2.1) reveals that in that case, DataNucleus with MySQL server is 9.5 times faster than DataNucleus with Derby server.

On the other hand, DataNucleus with MySQL server is slower, for instance, when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.27) to the normalized speed of DataNucleus with Derby database server (1.2) reveals that in that case, DataNucleus with MySQL server is 4.4 times slower than DataNucleus with Derby server.

Speed comparison of JPA database query operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test7.237.72.23.64.720.7
Element Collection Test5.825.90.271.43.113.6
Inheritance Test2.96.51.71.82.34.2
Indexing Test0.00840.0302.54.91.22.5
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests4.017.51.72.92.810.2

DataNucleus with MySQL server has failed in 2 tests (see exceptions). DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general DataNucleus with Derby server is much more efficient than DataNucleus with MySQL server in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with MySQL database server (2.8) to the normalized speed of DataNucleus with Derby database server (10.2) reveals that in these tests, DataNucleus with Derby server is 3.6 times faster than DataNucleus with MySQL server.

A large performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (7.2) to the normalized speed of DataNucleus with Derby database server (37.7) reveals that in that case, DataNucleus with Derby server is 5.2 times faster than DataNucleus with MySQL server.

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test0.611.11.10.850.880.99
Element Collection Test0.310.810.440.620.380.71
Inheritance Test0.511.21.81.31.11.2
Indexing Test0.681.22.21.51.51.3
Graph (Binary Tree) Test0.910.290.470.410.690.35
Multithreading Test0.64failedfailedfailed0.64failed
All Tests0.610.931.20.920.880.92

DataNucleus with MySQL server has failed in 1 tests (see exceptions). DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general DataNucleus with Derby server is slightly more efficient than DataNucleus with MySQL server in updating JPA entity objects in the database.

A large performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.31) to the normalized speed of DataNucleus with Derby database server (0.81) reveals that in that case, DataNucleus with Derby server is 2.6 times faster than DataNucleus with MySQL server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.29) to the normalized speed of DataNucleus with MySQL database server (0.91) reveals that in that case, DataNucleus with Derby server is 3.1 times slower than DataNucleus with MySQL server.

Speed comparison of JPA database removal operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test0.701.31.31.31.01.3
Element Collection Test0.170.610.400.330.290.47
Inheritance Test0.411.01.31.30.871.2
Indexing Test1.72.31.91.91.82.1
Graph (Binary Tree) Test0.490.260.460.460.470.36
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.691.11.11.10.891.1

DataNucleus with MySQL server has failed in 2 tests (see exceptions). DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general DataNucleus with Derby server is slightly more efficient than DataNucleus with MySQL server in deleting JPA entity objects from the database.

A large performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.17) to the normalized speed of DataNucleus with Derby database server (0.61) reveals that in that case, DataNucleus with Derby server is 3.6 times faster than DataNucleus with MySQL server.

Comparison of JPA/Database speed - the averages (normalized score, higher is better)

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
DataNucleus
MySQL server
DataNucleus
Derby server
Basic Person Test2.48.73.12.92.75.8
Element Collection Test1.55.70.470.720.993.2
Inheritance Test1.42.42.92.62.12.5
Indexing Test1.41.73.83.92.62.8
Graph (Binary Tree) Test1.20.351.42.01.31.2
Multithreading Test2.43.05.16.73.54.9
All Tests1.73.82.62.82.13.3

The results above show that in general DataNucleus with Derby server is more efficient than DataNucleus with MySQL server in performing JPA database operations.

A large performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (1.5) to the normalized speed of DataNucleus with Derby database server (5.7) reveals that in that case, DataNucleus with Derby server is 3.8 times faster than DataNucleus with MySQL server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.35) to the normalized speed of DataNucleus with MySQL database server (1.2) reveals that in that case, DataNucleus with Derby server is 3.4 times slower than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons