Compare with

Comparison of DataNucleus with PostgreSQL server vs DataNucleus with MySQL 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
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test4.12.62.61.43.32.0
Element Collection Test0.911.00.380.480.640.76
Inheritance Test3.82.52.41.33.11.9
Indexing Test6.04.06.42.56.23.3
Graph (Binary Tree) Test0.911.10.770.990.841.1
Multithreading Test18.06.28.32.513.14.4
All Tests5.62.93.51.54.52.2

The results above show that in general DataNucleus with PostgreSQL server is more efficient than DataNucleus with MySQL server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with MySQL database server (2.2) to the normalized speed of DataNucleus with PostgreSQL database server (4.5) reveals that in these tests, DataNucleus with PostgreSQL server is 2.0 times faster than DataNucleus with MySQL server.

A large performance gap has been detected when using multithreading with large transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (2.5) to the normalized speed of DataNucleus with PostgreSQL database server (8.3) reveals that in that case, DataNucleus with PostgreSQL server is 3.3 times faster than DataNucleus with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test1.70.967.69.34.65.1
Element Collection Test0.730.180.630.770.680.47
Inheritance Test1.50.559.38.55.44.5
Indexing Test1.50.829.29.75.35.3
Graph (Binary Tree) Test2.62.112.33.57.42.8
Multithreading Test3.40.2710.87.87.14.0
All Tests1.90.818.36.65.13.7

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

A huge performance gap has been detected 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 PostgreSQL database server (3.4) reveals that in that case, DataNucleus with PostgreSQL server is 12.6 times faster than DataNucleus with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test49.17.24.72.226.94.7
Element Collection Test39.15.80.480.2719.83.1
Inheritance Test55.92.96.61.731.22.3
Indexing Test0.0480.00846.42.53.21.2
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests36.04.04.51.720.32.8

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

The results above show that in general DataNucleus with PostgreSQL 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 PostgreSQL database server (20.3) reveals that in these tests, DataNucleus with PostgreSQL server is 7.3 times faster than DataNucleus with MySQL server.

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (2.9) to the normalized speed of DataNucleus with PostgreSQL database server (55.9) reveals that in that case, DataNucleus with PostgreSQL server is 19.3 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
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test2.10.610.841.11.50.88
Element Collection Test1.40.310.640.441.00.38
Inheritance Test2.10.511.21.81.71.1
Indexing Test2.20.681.52.21.81.5
Graph (Binary Tree) Test0.650.910.200.470.420.69
Multithreading Test0.460.64failedfailed0.460.64
All Tests1.50.610.871.21.20.88

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

The results above show that in general DataNucleus with PostgreSQL server is 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 PostgreSQL database server (1.4) reveals that in that case, DataNucleus with PostgreSQL server is 4.5 times faster than DataNucleus with MySQL server.

On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.20) to the normalized speed of DataNucleus with MySQL database server (0.47) reveals that in that case, DataNucleus with PostgreSQL server is 2.3 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
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test3.00.701.31.32.21.0
Element Collection Test1.00.170.390.400.690.29
Inheritance Test2.80.411.31.32.10.87
Indexing Test5.41.71.91.93.71.8
Graph (Binary Tree) Test0.380.490.370.460.370.47
Multithreading Test13.8failedfailedfailed13.8failed
All Tests4.40.691.11.12.90.89

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

The results above show that in general DataNucleus with PostgreSQL server is much more efficient than DataNucleus with MySQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with MySQL database server (0.89) to the normalized speed of DataNucleus with PostgreSQL database server (2.9) reveals that in these tests, DataNucleus with PostgreSQL server is 3.3 times faster than DataNucleus with MySQL server.

A large performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.41) to the normalized speed of DataNucleus with PostgreSQL database server (2.8) reveals that in that case, DataNucleus with PostgreSQL server is 6.8 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
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
DataNucleus
PostgreSQL server
DataNucleus
MySQL server
Basic Person Test12.02.43.43.17.72.7
Element Collection Test8.61.50.500.474.60.99
Inheritance Test13.21.44.22.98.72.1
Indexing Test3.01.45.13.84.02.6
Graph (Binary Tree) Test1.11.23.41.42.31.3
Multithreading Test8.92.49.55.19.13.5
All Tests8.01.73.82.66.02.1

The results above show that in general DataNucleus with PostgreSQL server is more efficient than DataNucleus with MySQL server in performing JPA database operations. Comparing the normalized speed of DataNucleus with MySQL database server (2.1) to the normalized speed of DataNucleus with PostgreSQL database server (6.0) reveals that in these tests, DataNucleus with PostgreSQL server is 2.9 times faster than DataNucleus with MySQL server.

A large performance gap has been detected when using class inheritance in the object model with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (1.4) to the normalized speed of DataNucleus with PostgreSQL database server (13.2) reveals that in that case, DataNucleus with PostgreSQL server is 9.4 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons