14 High-Performance Java Persistence Tips

(Last Updated On: June 6, 2018)Introduction A high-performance data access layer requires a lot of knowledge about database internals, JDBC, JPA, Hibernate, and this post summarizes some of the most important techniques you can use to optimize your enterprise application. 1. SQL … | Continue reading


@vladmihalcea.com | 6 years ago

How Does MVCC (Multi-Version Concurrency Control) Work

(Last Updated On: January 4, 2018)Introduction In Concurrency Control theory, there are two ways you can deal with conflicts: You can avoid them, by employing a pessimistic locking mechanism (e.g. Read/Write locks, Two-Phase Locking) You can allow conflicts to occur, but you need … | Continue reading


@vladmihalcea.com | 6 years ago

9 High-Performance Tips When Using PostgreSQL with JPA and Hibernate

If you are struggling with data access performance issues, then you should definitely check out these PostgreSQL performance tuning tips. | Continue reading


@vladmihalcea.com | 6 years ago

A beginner’s guide to database multitenancy

Learn various multitetancy strategies when using a relational database system like catalog, schema or table-based tenant isolation patterns. | Continue reading


@vladmihalcea.com | 6 years ago

How to Use PrePersist and PreUpdate on Embeddable with JPA and Hibernate

Learn how to use the JPA @PrePersist and @PreUpdate entity event listeners on Embeddable types with Hibernate ORM 5.2.17 | Continue reading


@vladmihalcea.com | 6 years ago