Hibernate performance tuning tips

Introduction

In this article, I’m going to summarise the most common Hibernate performance tuning tips that can help you speed up your data access layer.

While getting started with JPA and Hibernate is fairly easy, if you want to get the most out of your data access layer, it’s very important to understand how the JPA provider works, as well as the configuration properties that can help you optimize application performance.

Continue reading “Hibernate performance tuning tips”

9 High-Performance Tips when using PostgreSQL with JPA and Hibernate

Introduction

To get the most out of the relational database in use, you need to make sure the data access layer resonates with the underlying database system.

In this article, we are going to see what you can do to boost up performance when using PostgreSQL with JPA and Hibernate.

Continue reading “9 High-Performance Tips when using PostgreSQL with JPA and Hibernate”

9 High-Performance Tips when using MySQL with JPA and Hibernate

Introduction

Although there is an SQL Standard, every relational database is ultimately unique, and you need to adjust your data access layer so that you get the most out of the relational database in use.

In this article, we are going to see what you can do to boost up performance when using MySQL with JPA and Hibernate.

Continue reading “9 High-Performance Tips when using MySQL with JPA and Hibernate”

How to optimize the merge operation using update while batching with JPA and Hibernate

Introduction

One of my readers has recently asked me about optimizing the merge entity state transition, and, because this is a great question, I decided to turn it into a blog post.

In this article, you are going to see a shortcoming of the merge entity state transition and how you can deal with it using Hibernate.

Continue reading “How to optimize the merge operation using update while batching with JPA and Hibernate”