Vlad Mihalcea

How does a relational database execute SQL statements and prepared statements

Imagine having a tool that can automatically detect if you are using JPA and Hibernate properly. Hypersistence Optimizer is that tool!

Introduction

In this article, we are going to see how a relational database executes SQL statements and prepared statements.

Read More

Hypersistence Optimizer initial release

Imagine having a tool that can automatically detect if you are using JPA and Hibernate properly. Hypersistence Optimizer is that tool!

Introduction

At the end of 2018, I got this idea of writing a tool which can automatically detect JPA and Hibernate issues by scanning your data access layer and provide you optimization tips.

At the beginning of February, Thodoris Chaikalis surprised me with this Facebook comment which reinforced the idea that having such a tool would be really awesome for Java developers working with JPA and Hibernate.

Facebook Comment about a tool like Hypersistence Optimizer

At the end of February, I got some time off, and I started working on it, and the reaction on social media exceeded my expectations:

Today, I’m happy to announce to you that the initial version is ready.

Hypersistence Optimizer has finally arrived!

Read More

Why you should avoid EXTRA Lazy Collections with Hibernate

Imagine having a tool that can automatically detect if you are using JPA and Hibernate properly. Hypersistence Optimizer is that tool!

Introduction

In this article, you are going to learn why using EXTRA Lazy Collections with Hibernate is a bad idea since it can lead to N+1 query issues and cause performance problems.

The reason I wanted to write this article is that I keep seeing it mentioned in StackOverflow or the Hibernate forum.

Read More

How does the entity version property work when using JPA and Hibernate

Imagine having a tool that can automatically detect if you are using JPA and Hibernate properly. Hypersistence Optimizer is that tool!

Introduction

In this article, I’m going to show you how the JPA @Version entity property works when using Hibernate.

The most significant benefit of adding a version property to a JPA entity is that we can prevent the lost update anomaly, therefore ensuring that data integrity is not compromised.

Read More

How do JPA persist, merge and Hibernate save, update, saveOrUpdate methods work

Imagine having a tool that can automatically detect if you are using JPA and Hibernate properly. Hypersistence Optimizer is that tool!

Introduction

In this article, I’m going to show you how the JPA persist and merge work and how do they compare with the Hibernate save, update, and saveOrUpdate methods.

Although you should favor the JPA-based entity state transition methods, you are going to see that the Hibernate-specific update is actually a good alternative to merge when you want to reduce the number of SQL queries being executed during a batch processing task.

Read More

Want to run your data access layer at warp speed?